summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-rw-r--r--lib/leap/platform.rb10
-rw-r--r--lib/leap_cli.rb1
-rw-r--r--lib/leap_cli/version.rb2
3 files changed, 11 insertions, 2 deletions
diff --git a/lib/leap/platform.rb b/lib/leap/platform.rb
index c1103d4..6938fb3 100644
--- a/lib/leap/platform.rb
+++ b/lib/leap/platform.rb
@@ -33,6 +33,8 @@ module Leap
@default_puppet_tags = []
self.instance_eval(&block)
+
+ @version ||= Versionomy.parse("0.0")
end
def version=(version)
@@ -65,6 +67,14 @@ module Leap
@version >= minimum_platform_version && @version <= maximum_platform_version
end
+ def major_version
+ if @version.major == 0
+ "#{@version.major}.#{@version.minor}"
+ else
+ @version.major
+ end
+ end
+
end
end
diff --git a/lib/leap_cli.rb b/lib/leap_cli.rb
index be16cf4..6cd625e 100644
--- a/lib/leap_cli.rb
+++ b/lib/leap_cli.rb
@@ -8,7 +8,6 @@ $ruby_version = RUBY_VERSION.split('.').collect{ |i| i.to_i }.extend(Comparable)
require 'leap/platform'
require 'leap_cli/version'
-require 'leap_cli/constants'
require 'leap_cli/exceptions'
require 'leap_cli/leapfile'
diff --git a/lib/leap_cli/version.rb b/lib/leap_cli/version.rb
index 019e267..80c9d3f 100644
--- a/lib/leap_cli/version.rb
+++ b/lib/leap_cli/version.rb
@@ -1,6 +1,6 @@
module LeapCli
unless defined?(LeapCli::VERSION)
- VERSION = '1.5.9'
+ VERSION = '1.6.0'
COMPATIBLE_PLATFORM_VERSION = '0.5.3'..'1.99'
SUMMARY = 'Command line interface to the LEAP platform'
DESCRIPTION = 'The command "leap" can be used to manage a bevy of servers running the LEAP platform from the comfort of your own home.'