Class: Specdown::Command

Inherits:
Object
  • Object
show all
Includes:
Hook
Defined in:
lib/specdown/command.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeCommand

Returns a new instance of Command.



7
8
9
# File 'lib/specdown/command.rb', line 7

def initialize
  @readmes = []
end

Instance Attribute Details

#readmesObject (readonly)

Returns the value of attribute readmes.



5
6
7
# File 'lib/specdown/command.rb', line 5

def readmes
  @readmes
end

Instance Method Details

#executeObject



18
19
20
21
22
# File 'lib/specdown/command.rb', line 18

def execute
  load_test_environment
  parse_options
  run
end

#execute_with_hooksObject



11
12
13
14
15
# File 'lib/specdown/command.rb', line 11

def execute_with_hooks
  execute

  exit exit_status
end