Module: Isono::ResourceManifest::RakeHelper::ClassMethods

Defined in:
lib/isono/resource_manifest.rb

Instance Method Summary collapse

Instance Method Details

#default_rakefile(rakefile) ⇒ Object



202
203
204
205
206
207
208
209
210
211
# File 'lib/isono/resource_manifest.rb', line 202

def default_rakefile(rakefile)
  rakefile =
    if Pathname.new(rakefile).absolute?
      rakefile.dup
    else
      File.expand_path(rakefile, @manifest.resource_root_path)
    end
  raise "File does not exist: #{rakefile}" unless File.exist?(rakefile)
  @manifest.helpers[:default_rakefile] = rakefile
end

#rake_bin_path(path) ⇒ Object



213
214
215
# File 'lib/isono/resource_manifest.rb', line 213

def rake_bin_path(path)
  @manifest.helpers[:rake_bin_path] = path
end