summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorelijah <elijah@riseup.net>2014-10-21 15:09:27 -0700
committerelijah <elijah@riseup.net>2014-10-21 15:09:27 -0700
commit9e5572c7177ab10904aafbdcba99de0364e57db9 (patch)
tree8fa0f81cf051bb6772a202c41b54df0d17cbea4a
parent642586c93ba6fb85104b8c096db715b88c61ebcb (diff)
version bump to 1.6, added platform.major_version
-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.'