Class: RBStarbound::SerializeCommand

Inherits:
Clamp::Command
  • Object
show all
Defined in:
lib/rbstarbound/commands/serialize.rb

Instance Method Summary collapse

Instance Method Details

#executeObject



15
16
17
18
# File 'lib/rbstarbound/commands/serialize.rb', line 15

def execute
  return unless format.casecmp('yaml').zero?
  serialize_from_yaml(formatted_file.to_s, save_file.to_s)
end