Class: TypedData::CLI

Inherits:
Thor
  • Object
show all
Defined in:
lib/typed_data/cli.rb

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.exit_on_failure?Boolean

Returns:

  • (Boolean)


8
9
10
# File 'lib/typed_data/cli.rb', line 8

def self.exit_on_failure?
  true
end

Instance Method Details

#convert(file = nil) ⇒ Object



20
21
22
# File 'lib/typed_data/cli.rb', line 20

def convert(file = nil)
  process(TypedData::Converter, :convert, file)
end

#restore(file = nil) ⇒ Object



32
33
34
# File 'lib/typed_data/cli.rb', line 32

def restore(file = nil)
  process(TypedData::Restorer, :restore, file)
end