bcome 0.6.7 → 0.6.8

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: c86cdfa38f13f17529b403351daff1ffb4a1882f
4
- data.tar.gz: e10d8535a6b3d3f7d12ebc67690c21255c4b64a9
3
+ metadata.gz: e37ef36e32729d99fc0d22377dd1f8e3a105f654
4
+ data.tar.gz: f2d3d80620f317a74aa17fe3ac0f61c56751f0ab
5
5
  SHA512:
6
- metadata.gz: c4f9986131a9469cdea801eab985b44abea0e2c208f8b7377a59ed83169c312a9e86ef7a92e508ad6fa1fe3f3ee20f891628a3a55b94db67dd0b67fa3750d261
7
- data.tar.gz: fda0527e81233185761f82309cc41713f3d09cab3d2db64f66136f3b021dcf44df1683bad60e786a0f26e3c1dc112a8189ff4b3ca21687f93dac1341dc124f1c
6
+ metadata.gz: cddabfe2eb7b2cc275b0b16891cd2865016cfa5a2eb34942f1038f2606f379030257af83cf68a1675c74a39794c94c6aac3c1e0a0c5982e836e25ce733ee8281
7
+ data.tar.gz: 5fe5bbb97ead4ea73ea29fe6f0b074ea0d928fe0863fc7b9af1b8ab9a045fd96575c2a6f3ffff510f590868d5e70513562d84130fce3545eae2516aec975383e
data/lib/bcome/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Bcome
2
- VERSION = "0.6.7"
2
+ VERSION = "0.6.8"
3
3
  end
@@ -20,7 +20,7 @@ module ::Bcome::Node
20
20
  def wbz_overriden_identifier
21
21
  prefix = stack_peer.overriden_identifier_prefix
22
22
  @identifier =~ /#{prefix}(.+)/
23
- return $1
23
+ return $1 ? $1 : @identifier
24
24
  end
25
25
 
26
26
  def ip_address
data/lib/object.rb CHANGED
@@ -1,11 +1,5 @@
1
1
  class Object
2
2
 
3
- def toggle_sudo
4
- @sudo = @sudo.nil? ? true : (@sudo ? false : true)
5
- puts "sudo #{sudo_state.informational}"
6
- return
7
- end
8
-
9
3
  def is_sudo?
10
4
  @sudo
11
5
  end
@@ -164,9 +164,5 @@ module ::Bcome::Stack
164
164
  return network_lookup_type == "dynamic"
165
165
  end
166
166
 
167
- def sudo
168
- toggle_sudo
169
- end
170
-
171
167
  end
172
168
  end
@@ -82,7 +82,6 @@ module ::Bcome::Stack
82
82
  { :command => "put", :description => "Copy files to remote (recursive - uses rsync)", :usage => "put 'local_path', 'remote_path'" },
83
83
  { :command => "get", :description => "Download from remote (recursive - uses rsync).", :usage => "get 'remote_path'"},
84
84
  { :command => "ssh", :description => "Initiate an SSH connection." },
85
- { :command => "sudo", :description => "Run 'get' and 'put' in sudo mode (assumes you have passwordless sudo setup)" },
86
85
  { :command => 'functions', :description => "List all available custom functions" }
87
86
  ]
88
87
  end
@@ -91,10 +90,6 @@ module ::Bcome::Stack
91
90
  @environment.platform
92
91
  end
93
92
 
94
- def sudo
95
- toggle_sudo
96
- end
97
-
98
93
  def is_sudo?
99
94
  super || @environment.is_sudo?
100
95
  end
@@ -117,7 +112,6 @@ module ::Bcome::Stack
117
112
 
118
113
  def do_describe
119
114
  description = "\tNode Id:".menu_item_cyan + "\s\s#{node.identifier.menu_item_yellow}"
120
- description += "\n\tsudo: ".menu_item_cyan + (is_sudo? ? "on".danger : "off" )
121
115
  description += "\n\t" + "Internal IP: ".menu_item_cyan + "#{@meta_data[:external_network_interface_address]}".menu_item_white
122
116
  description += "\n\t" + "External IP: ".menu_item_cyan + "#{node.public_ip_address}".menu_item_white if node.public_ip_address
123
117
  description += "\n\t" + "Role: ".menu_item_cyan + "#{node.role}".menu_item_white if node.role
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: bcome
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.6.7
4
+ version: 0.6.8
5
5
  platform: ruby
6
6
  authors:
7
7
  - Guillaume Roderick (Webzakimbo)
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-12-02 00:00:00.000000000 Z
11
+ date: 2016-12-07 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: aws-sdk
@@ -205,7 +205,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
205
205
  version: '0'
206
206
  requirements: []
207
207
  rubyforge_project:
208
- rubygems_version: 2.5.1
208
+ rubygems_version: 2.6.8
209
209
  signing_key:
210
210
  specification_version: 4
211
211
  summary: Toolkit for managing machines - simplify your workflow.