Class: EcoRake::Lib::Files::UrlPull

Inherits:
BaseTask show all
Defined in:
lib/eco-rake/lib/files/url_pull.rb

Constant Summary collapse

FORWARD_RULES =
{
  enviro:     ->(enviro) { "-#{enviro}" },
  space:      ->(space)  { "-space #{space}" },
  folder:     ->(folder) { "-local-folder #{folder}"},
  target_url: ->(str)    { "-target-url-const #{str}"}
}.freeze

Constants inherited from EcoRake

VERSION

Instance Method Summary collapse

Instance Method Details

#task(*_args) ⇒ Object

attr_const :target_enviro, required: true option_reopen :enviro, default_lookup: :target_enviro



24
25
26
# File 'lib/eco-rake/lib/files/url_pull.rb', line 24

def task(*_args)
  sh_exit_on_fail url_pull_command
end