awsome 0.0.63 → 0.0.64
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/awsome.rb +6 -3
- data/lib/awsome/ec2.rb +2 -1
- metadata +1 -1
data/lib/awsome.rb
CHANGED
@@ -7,11 +7,15 @@ module Awsome
|
|
7
7
|
|
8
8
|
def self.execute(command, options={})
|
9
9
|
command = command.join(' ') if command.is_a?(Array)
|
10
|
-
description = options[:task] ? "[#{options[:task].upcase}] #{command}" : command
|
11
10
|
verbose = config.verbose && options[:verbose] != false
|
12
11
|
if verbose
|
13
12
|
puts
|
14
|
-
puts
|
13
|
+
puts
|
14
|
+
if options[:task]
|
15
|
+
puts options[:task].upcase
|
16
|
+
puts '-' * options[:task].length
|
17
|
+
end
|
18
|
+
puts "> #{command}"
|
15
19
|
end
|
16
20
|
if options[:system]
|
17
21
|
result = system(command)
|
@@ -22,7 +26,6 @@ module Awsome
|
|
22
26
|
end
|
23
27
|
ensure
|
24
28
|
if verbose && options[:output] != false
|
25
|
-
puts '-' * description.length
|
26
29
|
if result.is_a?(Array)
|
27
30
|
if result.any?
|
28
31
|
headings = result.first.collect(&:first)
|
data/lib/awsome/ec2.rb
CHANGED