class Raketary::GitHubPkgCmd

@author Jonathan Bradley Whited @since 0.1.2

Public Class Methods

new(*) click to toggle source
Calls superclass method Raketary::Cmd::new
# File lib/raketary/github_pkg_cmd.rb, line 24
def initialize(*)
  super

  parse! do |op|
    op.on('-u','--user STR','set the GitHub username')

    op.separator op.summary_indent
  end
end

Public Instance Methods

run() click to toggle source
Calls superclass method Raketary::Cmd#run
# File lib/raketary/github_pkg_cmd.rb, line 34
def run
  super()

  ghpkg_task = Raketeer::GitHubPkgTask.new do |task|
    task.username = app.options[:user]
  end

  ghpkg_task = Rake::Task[ghpkg_task.name]

  ghpkg_task.reenable
  ghpkg_task.invoke

  app.ran_cmd = true
end