Class: Wrake::Command::Options

Inherits:
Object
  • Object
show all
Defined in:
lib/wrake/command/options.rb

Defined Under Namespace

Classes: Error

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(options = []) ⇒ Options

Returns a new instance of Options.



10
11
12
13
# File 'lib/wrake/command/options.rb', line 10

def initialize(options = [])
  @env = 'production'
  parse(options)
end

Instance Attribute Details

#config_fileObject (readonly)

Returns the value of attribute config_file.



8
9
10
# File 'lib/wrake/command/options.rb', line 8

def config_file
  @config_file
end

#envObject (readonly)

Returns the value of attribute env.



8
9
10
# File 'lib/wrake/command/options.rb', line 8

def env
  @env
end

#task_argsObject (readonly)

Returns the value of attribute task_args.



8
9
10
# File 'lib/wrake/command/options.rb', line 8

def task_args
  @task_args
end

#task_nameObject (readonly)

Returns the value of attribute task_name.



8
9
10
# File 'lib/wrake/command/options.rb', line 8

def task_name
  @task_name
end