Module: GitReflow
- Extended by:
- GitReflow
- Includes:
- GitHelpers, Sandbox
- Included in:
- GitReflow
- Defined in:
- lib/git_reflow.rb,
lib/git_reflow/config.rb,
lib/git_reflow/logger.rb,
lib/git_reflow/sandbox.rb,
lib/git_reflow/version.rb,
lib/git_reflow/workflow.rb,
lib/git_reflow/git_server.rb,
lib/git_reflow/git_helpers.rb,
lib/git_reflow/merge_error.rb,
lib/git_reflow/workflows/core.rb,
lib/git_reflow/git_server/base.rb,
lib/git_reflow/git_server/git_hub.rb,
lib/git_reflow/rspec/stub_helpers.rb,
lib/git_reflow/git_server/bit_bucket.rb,
lib/git_reflow/rspec/workflow_helpers.rb,
lib/git_reflow/git_server/pull_request.rb,
lib/git_reflow/rspec/command_line_helpers.rb,
lib/git_reflow/git_server/git_hub/pull_request.rb,
lib/git_reflow/git_server/bit_bucket/pull_request.rb
Defined Under Namespace
Modules: Config, GitHelpers, GitServer, RSpec, Sandbox, Workflow, Workflows Classes: Logger
Constant Summary collapse
- VERSION =
"0.9.9"
Constants included from Sandbox
Instance Method Summary collapse
- #git_server ⇒ Object
- #logger(*args) ⇒ Object
- #method_missing(method_sym, *arguments, &block) ⇒ Object
- #respond_to_missing?(method_sym, include_all = false) ⇒ Boolean
- #workflow ⇒ Object
Methods included from GitHelpers
#append_to_merge_commit_message, #current_branch, #default_base_branch, #default_editor, #fetch_destination, #get_first_commit_message, #git_editor_command, #git_root_dir, #merge_commit_template, #merge_message_path, #pull_request_template, #push_current_branch, #remote_repo_name, #remote_user, #update_current_branch, #update_destination, #update_feature_branch
Methods included from Sandbox
#run, #run_command_with_label, #say
Dynamic Method Handling
This class handles dynamic methods through the method_missing method
#method_missing(method_sym, *arguments, &block) ⇒ Object
50 51 52 53 54 55 56 |
# File 'lib/git_reflow.rb', line 50 def method_missing(method_sym, *arguments, &block) if workflow && workflow.respond_to?(method_sym, false) workflow.send method_sym, *arguments, &block else super end end |
Instance Method Details
#git_server ⇒ Object
42 43 44 |
# File 'lib/git_reflow.rb', line 42 def git_server @git_server ||= GitServer.connect provider: GitReflow::Config.get('reflow.git-server').strip, silent: true end |
#logger(*args) ⇒ Object
34 35 36 |
# File 'lib/git_reflow.rb', line 34 def logger(*args) @logger ||= GitReflow::Logger.new(*args) end |
#respond_to_missing?(method_sym, include_all = false) ⇒ Boolean
46 47 48 |
# File 'lib/git_reflow.rb', line 46 def respond_to_missing?(method_sym, include_all = false) (workflow && workflow.respond_to?(method_sym, include_all)) || super(method_sym, include_all) end |