Class: HttpStubDocker::Rake::Arguments

Inherits:
Object
  • Object
show all
Defined in:
lib/http_stub_docker/rake/arguments.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#configurerObject (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_uriObject (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

#portObject (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_tagsObject (readonly)

Returns the value of attribute publish_tags.



10
11
12
# File 'lib/http_stub_docker/rake/arguments.rb', line 10

def publish_tags
  @publish_tags
end

#stub_dirObject (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_nameObject (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_prefixObject (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