Top Level Namespace

Defined Under Namespace

Modules: Henchman

Instance Method Summary collapse

Instance Method Details

#manifests_dirObject



123
124
125
# File 'lib/henchman/rake.rb', line 123

def manifests_dir
  File.join(source_dir, 'test/fixtures/manifests')
end

#module_nameObject



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_dirObject



119
120
121
# File 'lib/henchman/rake.rb', line 119

def modules_dir
  File.join(source_dir, 'test/fixtures/modules')
end


7
8
9
# File 'lib/henchman/rake.rb', line 7

def print_section(str)
  puts "==> \e[0;34m#{str}\e[0m"
end

#source_dirObject



107
108
109
# File 'lib/henchman/rake.rb', line 107

def source_dir
  Dir.pwd
end

#spec_dirObject



111
112
113
# File 'lib/henchman/rake.rb', line 111

def spec_dir
  File.join(source_dir, 'spec')
end

#unit_dirObject



115
116
117
# File 'lib/henchman/rake.rb', line 115

def unit_dir
  File.join(source_dir, 'test/unit')
end