Class: EcoRake::Lib::Export::Payload

Inherits:
BaseTask show all
Defined in:
lib/eco-rake/lib/export/payload.rb

Constant Summary collapse

INCLUDED_OPTIONS =
%i[csv simulate].freeze
FORWARD_RULES =
{
  enviro:   ->(enviro) { "-#{enviro}" },
  simulate: '-simulate',
  csv:      '-csv',
  full:     ->(full) { full ? nil : '-delta' },
  asat:     ->(asat) { "-asatdate #{asat}" }
}.freeze

Constants inherited from EcoRake

VERSION

Instance Method Summary collapse

Instance Method Details

#task(*_args) ⇒ Object



31
32
33
34
35
# File 'lib/eco-rake/lib/export/payload.rb', line 31

def task(*_args)
  sh_chain(commands) do |ok, _res|
    exit 1 unless ok
  end
end