Module: S3Cmd
- Defined in:
- lib/version.rb,
lib/dsl/dsl.rb
Overview
:nodoc:
Defined Under Namespace
Modules: VERSION
Instance Method Summary collapse
Instance Method Details
#s3cmd(name = nil, command = nil, execute = nil, &block) ⇒ Object
4 5 6 7 8 9 10 11 12 |
# File 'lib/dsl/dsl.rb', line 4 def s3cmd(name = nil, command = nil, execute = nil, &block) s3cmd = S3CmdDSL.new(name) s3cmd.send(command) if command s3cmd.execute if execute == 'execute' if block_given? && command.nil? s3cmd.instance_eval(&block) end s3cmd.send_block_command end |