Class: HttpStubDocker::Rake::Arguments
- Inherits:
-
Object
- Object
- HttpStubDocker::Rake::Arguments
- Defined in:
- lib/http_stub_docker/rake/arguments.rb
Instance Attribute Summary collapse
-
#configurer ⇒ Object
readonly
Returns the value of attribute configurer.
-
#external_base_uri ⇒ Object
readonly
Returns the value of attribute external_base_uri.
-
#port ⇒ Object
readonly
Returns the value of attribute port.
-
#publish_tags ⇒ Object
readonly
Returns the value of attribute publish_tags.
-
#stub_dir ⇒ Object
readonly
Returns the value of attribute stub_dir.
-
#stub_name ⇒ Object
readonly
Returns the value of attribute stub_name.
-
#task_prefix ⇒ Object
readonly
Returns the value of attribute task_prefix.
Instance Method Summary collapse
-
#initialize(args) ⇒ Arguments
constructor
A new instance of Arguments.
Constructor Details
#initialize(args) ⇒ Arguments
Returns a new instance of Arguments.
12 13 14 15 16 17 |
# File 'lib/http_stub_docker/rake/arguments.rb', line 12 def initialize(args) @port = ENV["port"] || DEFAULT_PORT args.each { |name, value| self.instance_variable_set("@#{name}", value) } @external_base_uri ||= "http://localhost:#{@port}" @task_prefix = current_rake_namespace end |
Instance Attribute Details
#configurer ⇒ Object (readonly)
Returns the value of attribute configurer.
10 11 12 |
# File 'lib/http_stub_docker/rake/arguments.rb', line 10 def configurer @configurer end |
#external_base_uri ⇒ Object (readonly)
Returns the value of attribute external_base_uri.
10 11 12 |
# File 'lib/http_stub_docker/rake/arguments.rb', line 10 def external_base_uri @external_base_uri end |
#port ⇒ Object (readonly)
Returns the value of attribute port.
10 11 12 |
# File 'lib/http_stub_docker/rake/arguments.rb', line 10 def port @port end |
#publish_tags ⇒ Object (readonly)
Returns the value of attribute publish_tags.
10 11 12 |
# File 'lib/http_stub_docker/rake/arguments.rb', line 10 def @publish_tags end |
#stub_dir ⇒ Object (readonly)
Returns the value of attribute stub_dir.
10 11 12 |
# File 'lib/http_stub_docker/rake/arguments.rb', line 10 def stub_dir @stub_dir end |
#stub_name ⇒ Object (readonly)
Returns the value of attribute stub_name.
10 11 12 |
# File 'lib/http_stub_docker/rake/arguments.rb', line 10 def stub_name @stub_name end |
#task_prefix ⇒ Object (readonly)
Returns the value of attribute task_prefix.
10 11 12 |
# File 'lib/http_stub_docker/rake/arguments.rb', line 10 def task_prefix @task_prefix end |