Class: Commands::Push
- Inherits:
-
Clamp::Command
- Object
- Clamp::Command
- Commands::Push
- Defined in:
- lib/commands/push.rb
Instance Method Summary collapse
Instance Method Details
#execute ⇒ Object
9 10 11 12 13 14 15 16 17 18 19 |
# File 'lib/commands/push.rb', line 9 def execute if safe? begin Timeout::timeout(4){ upload } rescue Exception => e puts "An exception occured: #{e.class}" end else upload end end |