Class: Mantra::Commands::Transform
- Inherits:
-
Mantra::Command
- Object
- Mantra::Command
- Mantra::Commands::Transform
- Defined in:
- lib/mantra/commands/transform.rb
Instance Attribute Summary collapse
-
#manifest ⇒ Object
Returns the value of attribute manifest.
Attributes inherited from Mantra::Command
Instance Method Summary collapse
Methods inherited from Mantra::Command
#initialize, option, option_descriptors, #parse_options, #run, usage
Methods included from Helpers::ObjectWithType
Constructor Details
This class inherits a constructor from Mantra::Command
Instance Attribute Details
#manifest ⇒ Object
Returns the value of attribute manifest.
8 9 10 |
# File 'lib/mantra/commands/transform.rb', line 8 def manifest @manifest end |
Instance Method Details
#perform ⇒ Object
29 30 31 32 33 34 |
# File 'lib/mantra/commands/transform.rb', line 29 def perform transforms.each do |t| t.run end puts manifest.to_ruby_object.to_yaml end |
#transform_config ⇒ Object
13 14 15 |
# File 'lib/mantra/commands/transform.rb', line 13 def transform_config @transform_config ||= YAML.load_file(transform_config_path) end |