Class: Gith

Inherits:
Object
  • Object
show all
Includes:
Commands, Config, Init, Io
Defined in:
lib/gith.rb,
lib/gith/io.rb,
lib/gith/init.rb,
lib/gith/config.rb,
lib/gith/version.rb,
lib/gith/commands.rb,
lib/gith/adapters/git.rb,
lib/gith/adapters/hubot.rb,
lib/gith/adapters/slack.rb,
lib/gith/commands/start.rb,
lib/gith/adapters/github.rb,
lib/gith/commands/accept.rb,
lib/gith/commands/deploy.rb,
lib/gith/commands/finish.rb,
lib/gith/commands/reject.rb,
lib/gith/commands/review.rb,
lib/gith/adapters/pivotal.rb,
lib/gith/commands/deliver.rb,
lib/gith/commands/discuss.rb,
lib/gith/commands/estimate.rb

Defined Under Namespace

Modules: Accept, Commands, Config, Deliver, Deploy, Discuss, Estimate, Finish, Git, Github, Init, Io, Pivotal, Reject, Review, Slack, Start Classes: Hubot

Constant Summary collapse

VERSION =
"0.0.10"

Constants included from Review

Review::SHIPIT

Constants included from Github

Github::DNM, Github::PASSED_REVIEW, Github::PENDING_REVIEW, Github::REVIEW_ME, Github::WIP

Constants included from Pivotal

Pivotal::ACCEPTED, Pivotal::DELIVERED, Pivotal::FINISHED, Pivotal::REJECTED, Pivotal::STARTED, Pivotal::V5_URL

Constants included from Init

Init::DEPLOYS, Init::GITH_REPO, Init::GITH_TEST, Init::HIRED_REPO

Instance Method Summary collapse

Methods included from Deploy

#deploy

Methods included from Git

#branch_name, #commit_all, #create_branch, #current_branch, #current_story_id, #push_branch, #push_current_branch, #unstaged_changes?

Methods included from Slack

#deploy_env, #lock_and_deploy, #lock_env, #post_message, #slack

Methods included from Review

#pass

Methods included from Github

#add_comment, #github, #label_pull_request, #labels_for, #open_pull_request, #pull_for, #pull_request, #pull_requests, #remove_label, #remove_labels

Methods included from Reject

#reject

Methods included from Pivotal

#accept_story, #compress_comments, #delete_comment, #deliver_story, #finish_story, #hubot_commit_comments, #me, #project, #project_from_story, #projects, #start_story, #story, #take_ownership

Methods included from Accept

#accept

Methods included from Deliver

#deliver

Methods included from Finish

#finish, #request_review_for

Methods included from Discuss

#discuss

Methods included from Start

#start

Methods included from Estimate

#estimate

Methods included from Io

#asks, #error, #exec_git, #exit_with, #get, #get_password, #notify, #prompt, #run, #success, #user_input, #yes_or_no

Methods included from Config

#config, #config_path, #generate, #github_config, #pivotal_config, #slack_config

Methods included from Init

#dev?, #load_env

Constructor Details

#initialize(args = nil) ⇒ Gith

Returns a new instance of Gith.



12
13
14
15
16
# File 'lib/gith.rb', line 12

def initialize(args=nil)
  load_env
  args = args.map{|x| x.split('#')}.flatten
  exec(args) if args
end

Instance Method Details

#consoleObject



18
19
20
# File 'lib/gith.rb', line 18

def console
  binding.pry
end

#pingObject



22
23
24
# File 'lib/gith.rb', line 22

def ping
  notify "Pong"
end