Class: Producer::Core::Actions::ShellCommand
Constant Summary
Producer::Core::Action::INSPECT_ARGUMENTS_SUM_LEN
Instance Attribute Summary
#arguments, #env, #options
Instance Method Summary
collapse
#initialize, #to_s
Instance Method Details
#apply ⇒ Object
14
15
16
|
# File 'lib/producer/core/actions/shell_command.rb', line 14
def apply
remote.execute @command, output, error_output
end
|
#name ⇒ Object
10
11
12
|
# File 'lib/producer/core/actions/shell_command.rb', line 10
def name
'sh'
end
|
#setup ⇒ Object
5
6
7
8
|
# File 'lib/producer/core/actions/shell_command.rb', line 5
def setup
check_arguments_size! 1
@command = arguments.first
end
|