Class: ClearcaseHelper::CLI
- Inherits:
-
Thor
- Object
- Thor
- ClearcaseHelper::CLI
- Defined in:
- lib/clearcase_helper/cli.rb
Instance Method Summary collapse
- #add_label(label, path = '.') ⇒ Object
- #add_view_only_files(path = '.') ⇒ Object
- #all_files(path = '.') ⇒ Object
- #checkedout_files(path = '.') ⇒ Object
- #checkin_checkedout(path = '.') ⇒ Object
- #checkin_hijacked(path = '.') ⇒ Object
- #checkout_highjacked(path = '.') ⇒ Object
- #create_and_add_label(label, path = '.') ⇒ Object
- #heaven ⇒ Object
- #hijacked_files(path = '.') ⇒ Object
- #missing_files(path = '.') ⇒ Object
- #remove_missing_files(path = '.') ⇒ Object
- #version ⇒ Object
- #view_only_files(path = '.') ⇒ Object
Instance Method Details
#add_label(label, path = '.') ⇒ Object
91 92 93 94 |
# File 'lib/clearcase_helper/cli.rb', line 91 def add_label(label, path='.') view = ClearcaseHelper::View.new(path) puts view.make_label(label, ) end |
#add_view_only_files(path = '.') ⇒ Object
69 70 71 72 |
# File 'lib/clearcase_helper/cli.rb', line 69 def add_view_only_files(path='.') view = ClearcaseHelper::View.new(path) puts view.add_view_only_files!() end |
#all_files(path = '.') ⇒ Object
11 12 13 14 |
# File 'lib/clearcase_helper/cli.rb', line 11 def all_files(path='.') view = ClearcaseHelper::View.new(path) puts view.all_files_with_status(false, ) end |
#checkedout_files(path = '.') ⇒ Object
32 33 34 35 |
# File 'lib/clearcase_helper/cli.rb', line 32 def checkedout_files(path='.') view = ClearcaseHelper::View.new(path) puts view.checkedout_files(false, ) end |
#checkin_checkedout(path = '.') ⇒ Object
54 55 56 57 |
# File 'lib/clearcase_helper/cli.rb', line 54 def checkin_checkedout(path='.') view = ClearcaseHelper::View.new(path) puts view.checkin_checkedout!() end |
#checkin_hijacked(path = '.') ⇒ Object
62 63 64 65 |
# File 'lib/clearcase_helper/cli.rb', line 62 def checkin_hijacked(path='.') view = ClearcaseHelper::View.new(path) puts view.checkin_hijacked!() end |
#checkout_highjacked(path = '.') ⇒ Object
46 47 48 49 |
# File 'lib/clearcase_helper/cli.rb', line 46 def checkout_highjacked(path='.') view = ClearcaseHelper::View.new(path) puts view.checkout_highjacked!() end |
#create_and_add_label(label, path = '.') ⇒ Object
83 84 85 86 87 |
# File 'lib/clearcase_helper/cli.rb', line 83 def create_and_add_label(label, path='.') view = ClearcaseHelper::View.new(path) puts view.make_label_type(label, ) puts view.make_label(label, ) end |
#heaven ⇒ Object
97 98 99 |
# File 'lib/clearcase_helper/cli.rb', line 97 def heaven $stderr.puts 'NO HEAVEN HERE - use a proper VCS!' end |
#hijacked_files(path = '.') ⇒ Object
25 26 27 28 |
# File 'lib/clearcase_helper/cli.rb', line 25 def hijacked_files(path='.') view = ClearcaseHelper::View.new(path) puts view.hijacked_files(false, ) end |
#missing_files(path = '.') ⇒ Object
39 40 41 42 |
# File 'lib/clearcase_helper/cli.rb', line 39 def missing_files(path='.') view = ClearcaseHelper::View.new(path) puts view.missing_files(false, ) end |
#remove_missing_files(path = '.') ⇒ Object
76 77 78 79 |
# File 'lib/clearcase_helper/cli.rb', line 76 def remove_missing_files(path='.') view = ClearcaseHelper::View.new(path) puts view.remove_missing_files!() end |
#version ⇒ Object
102 103 104 |
# File 'lib/clearcase_helper/cli.rb', line 102 def version puts VERSION end |
#view_only_files(path = '.') ⇒ Object
18 19 20 21 |
# File 'lib/clearcase_helper/cli.rb', line 18 def view_only_files(path='.') view = ClearcaseHelper::View.new(path) puts view.view_only_files(false, ) end |