awsome 0.0.61 → 0.0.62
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.
- data/lib/awsome.rb +1 -1
- data/lib/awsome/ec2.rb +7 -2
- data/lib/awsome/ssh.rb +1 -1
- metadata +1 -1
data/lib/awsome.rb
CHANGED
@@ -5,7 +5,7 @@ module Awsome
|
|
5
5
|
|
6
6
|
def self.execute(command, options={})
|
7
7
|
command = command.join(' ') if command.is_a?(Array)
|
8
|
-
description = options[:task] ? "[#{options[:task]}] #{command}" : command
|
8
|
+
description = options[:task] ? "[#{options[:task].upcase}] #{command}" : command
|
9
9
|
verbose = config.verbose && options[:verbose] != false
|
10
10
|
if verbose
|
11
11
|
puts
|
data/lib/awsome/ec2.rb
CHANGED
@@ -58,7 +58,7 @@ module Awsome
|
|
58
58
|
cmd = command('ec2-create-tags', resource_id, *tags)
|
59
59
|
Awsome.execute(
|
60
60
|
cmd,
|
61
|
-
task: "
|
61
|
+
task: "creating tags"
|
62
62
|
)
|
63
63
|
end
|
64
64
|
|
@@ -135,7 +135,12 @@ module Awsome
|
|
135
135
|
def self.describe_attachments(filters={})
|
136
136
|
cmd = [Awsome::Ec2.command('ec2-describe-volumes')]
|
137
137
|
cmd += filters.collect { |k,v| "--filter \"#{k}=#{v}\"" }
|
138
|
-
Awsome.execute(
|
138
|
+
Awsome.execute(
|
139
|
+
cmd,
|
140
|
+
columns: @@describe_attachments_fields,
|
141
|
+
filter: /^ATTACHMENT/,
|
142
|
+
verbose: false
|
143
|
+
)
|
139
144
|
end
|
140
145
|
|
141
146
|
def self.detach_volume(volume_id, dir, preumount)
|
data/lib/awsome/ssh.rb
CHANGED
@@ -17,7 +17,7 @@ module Awsome
|
|
17
17
|
else
|
18
18
|
from = "#{ENV['SSH_USER']}@#{from}"
|
19
19
|
end
|
20
|
-
Awsome.execute("scp -i #{ENV['SSH_KEY']} #{from} #{to}", system: true,
|
20
|
+
Awsome.execute("scp -i #{ENV['SSH_KEY']} #{from} #{to}", system: true, verbose: false)
|
21
21
|
end
|
22
22
|
|
23
23
|
def self.has_ssh?(host)
|