awsome 0.0.63 → 0.0.64

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. data/lib/awsome.rb +6 -3
  2. data/lib/awsome/ec2.rb +2 -1
  3. metadata +1 -1
@@ -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 description
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)
@@ -58,7 +58,8 @@ module Awsome
58
58
  cmd = command('ec2-create-tags', resource_id, *tags)
59
59
  Awsome.execute(
60
60
  cmd,
61
- task: "creating tags"
61
+ task: "creating tags",
62
+ output: false
62
63
  )
63
64
  end
64
65
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: awsome
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.63
4
+ version: 0.0.64
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: