Class: Action::CLI::GetDump

Inherits:
Object
  • Object
show all
Includes:
InchCI::Action
Defined in:
app/services/action/cli/get_dump.rb

Instance Method Summary collapse

Methods included from InchCI::Action

#exposures, included

Constructor Details

#initialize(params) ⇒ GetDump

Returns a new instance of GetDump.


10
11
12
13
14
15
# File 'app/services/action/cli/get_dump.rb', line 10

def initialize(params)
  if @filename = params[:filename]
    @json = JSON[ File.read( filename_from_params(@filename, :json) ) ]
    @out  = terminal File.read( filename_from_params(@filename, :out) )
  end
end