Module: Kernel

Defined in:
lib/social_stream/release/kernel.rb

Instance Method Summary collapse

Instance Method Details

#release_cmd(cmd) ⇒ Object


14
15
16
17
18
19
20
21
22
23
# File 'lib/social_stream/release/kernel.rb', line 14

def release_cmd(cmd)
  case SocialStream::Release::Kernel.release_action
  when :system
    system(cmd) || raise(RuntimeError.new)
  when :test
    puts "* release_cmd * #{ cmd }"
  else
    raise "Unknown release_action #{ SocialStream::Release::Kernel.release_action }"
  end
end