Top Level Namespace

Includes:
HerokuSan::Git

Defined Under Namespace

Modules: HerokuSan Classes: HerokuSanGenerator

Instance Method Summary collapse

Methods included from HerokuSan::Git

#git_active_branch, #git_clone, #git_named_rev, #git_parsed_tag, #git_push, #git_rev_parse, #git_revision, #git_tag

Instance Method Details

#alias_task(hash) ⇒ Object



300
301
302
303
304
305
# File 'lib/heroku_san/tasks.rb', line 300

def alias_task(hash)
  hash.each_pair do |(new_task, original_task)|
    the_task = Rake.application[original_task]
    task new_task, {the_task.arg_names => [original_task]}
  end
end

#each_heroku_app(&block) ⇒ Object



320
321
322
323
324
325
326
327
328
329
330
331
332
333
# File 'lib/heroku_san/tasks.rb', line 320

def each_heroku_app(&block)
  HerokuSan.project.each_app(&block)
  puts
rescue HerokuSan::NoApps => e
  puts "You must first specify at least one Heroku app:
    rake <app> [<app>] <command>
    rake production restart
    rake demo staging deploy"

  puts "\nYou can use also command all Heroku apps for this project:
    rake all restart"

  exit(1)
end