Top Level Namespace
Defined Under Namespace
Modules: Henchman
Instance Method Summary collapse
- #manifests_dir ⇒ Object
- #module_name ⇒ Object
- #modules_dir ⇒ Object
- #print_section(str) ⇒ Object
- #source_dir ⇒ Object
- #spec_dir ⇒ Object
- #unit_dir ⇒ Object
Instance Method Details
#manifests_dir ⇒ Object
123 124 125 |
# File 'lib/henchman/rake.rb', line 123 def manifests_dir File.join(source_dir, 'test/fixtures/manifests') end |
#module_name ⇒ Object
127 128 129 130 131 132 133 134 135 |
# File 'lib/henchman/rake.rb', line 127 def module_name = File.join(source_dir, 'metadata.json') if File.exist?() require 'json' JSON.parse(File.read())['name'].split('-', 2).last else raise "Unable to find #{}, cannot continue" end end |
#modules_dir ⇒ Object
119 120 121 |
# File 'lib/henchman/rake.rb', line 119 def modules_dir File.join(source_dir, 'test/fixtures/modules') end |
#print_section(str) ⇒ Object
7 8 9 |
# File 'lib/henchman/rake.rb', line 7 def print_section(str) puts "==> \e[0;34m#{str}\e[0m" end |
#source_dir ⇒ Object
107 108 109 |
# File 'lib/henchman/rake.rb', line 107 def source_dir Dir.pwd end |
#spec_dir ⇒ Object
111 112 113 |
# File 'lib/henchman/rake.rb', line 111 def spec_dir File.join(source_dir, 'spec') end |
#unit_dir ⇒ Object
115 116 117 |
# File 'lib/henchman/rake.rb', line 115 def unit_dir File.join(source_dir, 'test/unit') end |