Class: AppCommand::Build
- Inherits:
-
Convoy::ActionCommand::Base
- Object
- Convoy::ActionCommand::Base
- AppCommand::Build
- Defined in:
- lib/routes/build.rb
Instance Method Summary collapse
Instance Method Details
#execute ⇒ Object
5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 |
# File 'lib/routes/build.rb', line 5 def execute begin @opts = @args = arguments opts_validate opts_routing rescue => e Blufin::Terminal::print_exception(e) end end |
#opts_routing ⇒ Object
29 30 31 32 33 34 35 36 37 38 39 40 41 42 |
# File 'lib/routes/build.rb', line 29 def opts_routing # Tag a branch: # $ git tag -a "v0.1.0-beta" -m "Version: v0.1.0-beta" # Show all commits between 2 tags... # $ git log v0.1.0-beta..v0.1.1-beta | grep "^commit [a-z0-9]\{40\}$" | awk '{print $2}' # Get commit message for commit hash... # $ git show d29f2870c59ffab4abb565c3e3c06430cd62515c | grep "^commit [a-z0-9]\{40\}$" -A4 | tail -n 1 raise RuntimeError, 'Not yet implemented!' end |
#opts_validate ⇒ Object
23 24 25 26 27 |
# File 'lib/routes/build.rb', line 23 def opts_validate Blufin::SiteServices::validate_site_service(@site, @service) end |