Class: Automux::Redirector::Default

Inherits:
Object
  • Object
show all
Defined in:
lib/automux/redirector/default.rb

Overview

:nodoc:

Instance Attribute Summary collapse

Instance Method Summary collapse

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 = get_options
  @recipe_name = argv[1]
end

Instance Attribute Details

#blueprint_nameObject (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

#optionsObject (readonly)

Returns the value of attribute options.



4
5
6
# File 'lib/automux/redirector/default.rb', line 4

def options
  @options
end

#recipe_nameObject (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

#redirectObject



12
13
14
# File 'lib/automux/redirector/default.rb', line 12

def redirect
  Automux::Controller::Recipes.new(params).automate
end