aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorelijah <elijah@ChrUbuntu.(none)>2013-09-05 22:36:43 -0700
committerelijah <elijah@ChrUbuntu.(none)>2013-09-05 22:36:43 -0700
commite173e4cae589034959e3c3b973e29413e8565941 (patch)
tree3d0a9c4e46ef7a030080b8664489c6227fadaf69 /lib
parent1c889bd37b147527b7ad140bf8f310da7d196537 (diff)
downloadleap_cli-e173e4cae589034959e3c3b973e29413e8565941.tar.gz
leap_cli-e173e4cae589034959e3c3b973e29413e8565941.tar.bz2
change /etc/hosts to use ec2_public_ipv4 (instead of ec2_local_ipv4) if defined. REQUIRES latest platform (0.2.4).
Diffstat (limited to 'lib')
-rw-r--r--lib/leap_cli/config/macros.rb4
-rw-r--r--lib/leap_cli/version.rb4
2 files changed, 4 insertions, 4 deletions
diff --git a/lib/leap_cli/config/macros.rb b/lib/leap_cli/config/macros.rb
index 03bd2d5..432e66d 100644
--- a/lib/leap_cli/config/macros.rb
+++ b/lib/leap_cli/config/macros.rb
@@ -171,8 +171,8 @@ module LeapCli; module Config
node_location = node['location'] ? node['location']['name'] : nil
if my_location == node_location
if facts = @node.manager.facts[node.name]
- if facts['ec2_local_ipv4']
- hosts[node.name]['ip_address'] = facts['ec2_local_ipv4']
+ if facts['ec2_public_ipv4']
+ hosts[node.name]['ip_address'] = facts['ec2_public_ipv4']
end
end
end
diff --git a/lib/leap_cli/version.rb b/lib/leap_cli/version.rb
index b3a2324..5e2b139 100644
--- a/lib/leap_cli/version.rb
+++ b/lib/leap_cli/version.rb
@@ -1,7 +1,7 @@
module LeapCli
unless defined?(LeapCli::VERSION)
- VERSION = '1.2.1'
- COMPATIBLE_PLATFORM_VERSION = '0.2.3'..'1.99'
+ VERSION = '1.2.2'
+ COMPATIBLE_PLATFORM_VERSION = '0.2.4'..'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.'
LOAD_PATHS = ['lib', 'vendor/certificate_authority/lib', 'vendor/rsync_command/lib']