Class: Gith
- Inherits:
-
Object
- Object
- Gith
- 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
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
- #console ⇒ Object
-
#initialize(args = nil) ⇒ Gith
constructor
A new instance of Gith.
- #ping ⇒ Object
Methods included from 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
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
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
Methods included from Deliver
Methods included from Finish
Methods included from Discuss
Methods included from Start
Methods included from 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
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
#console ⇒ Object
18 19 20 |
# File 'lib/gith.rb', line 18 def console binding.pry end |
#ping ⇒ Object
22 23 24 |
# File 'lib/gith.rb', line 22 def ping notify "Pong" end |