Class: Automux::Redirector::Default
- Inherits:
-
Object
- Object
- Automux::Redirector::Default
- Defined in:
- lib/automux/redirector/default.rb
Overview
:nodoc:
Instance Attribute Summary collapse
-
#blueprint_name ⇒ Object
readonly
Returns the value of attribute blueprint_name.
-
#options ⇒ Object
readonly
Returns the value of attribute options.
-
#recipe_name ⇒ Object
readonly
Returns the value of attribute recipe_name.
Instance Method Summary collapse
-
#initialize(argv) ⇒ Default
constructor
A new instance of Default.
- #redirect ⇒ Object
Constructor Details
#initialize(argv) ⇒ Default
Returns a new instance of Default.
6 7 8 9 10 |
# File 'lib/automux/redirector/default.rb', line 6 def initialize(argv) @blueprint_name = non_opt_argument_or_nil(argv[0]) @options = @recipe_name = argv[1] end |
Instance Attribute Details
#blueprint_name ⇒ Object (readonly)
Returns the value of attribute blueprint_name.
4 5 6 |
# File 'lib/automux/redirector/default.rb', line 4 def blueprint_name @blueprint_name end |
#options ⇒ Object (readonly)
Returns the value of attribute options.
4 5 6 |
# File 'lib/automux/redirector/default.rb', line 4 def @options end |
#recipe_name ⇒ Object (readonly)
Returns the value of attribute recipe_name.
4 5 6 |
# File 'lib/automux/redirector/default.rb', line 4 def recipe_name @recipe_name end |
Instance Method Details
#redirect ⇒ Object
12 13 14 |
# File 'lib/automux/redirector/default.rb', line 12 def redirect Automux::Controller::Recipes.new(params).automate end |