Class: EacRedmineBase0::Tasks::System
- Inherits:
-
Object
- Object
- EacRedmineBase0::Tasks::System
- Defined in:
- lib/eac_redmine_base0/tasks/system.rb
Instance Method Summary collapse
- #banner ⇒ Object
- #command ⇒ EacRubyUtils::Envs::Command
- #command_args ⇒ Array<String>
- #host_env ⇒ EacRubyUtils::Envs::Local
- #perform ⇒ Object
Instance Method Details
#banner ⇒ Object
10 11 12 13 |
# File 'lib/eac_redmine_base0/tasks/system.rb', line 10 def ::Rails.logger.info("Command string: #{command_string}") ::Rails.logger.info("Command arguments: #{command_args}") end |
#command ⇒ EacRubyUtils::Envs::Command
16 17 18 |
# File 'lib/eac_redmine_base0/tasks/system.rb', line 16 def command host_env.command(*command_args) end |
#command_args ⇒ Array<String>
21 22 23 |
# File 'lib/eac_redmine_base0/tasks/system.rb', line 21 def command_args ::Shellwords.split(command_string) end |
#host_env ⇒ EacRubyUtils::Envs::Local
26 27 28 |
# File 'lib/eac_redmine_base0/tasks/system.rb', line 26 def host_env ::EacRubyUtils::Envs.local end |
#perform ⇒ Object
30 31 32 33 |
# File 'lib/eac_redmine_base0/tasks/system.rb', line 30 def perform command.system! end |