Class: ClearcaseHelper::CLI

Inherits:
Thor
  • Object
show all
Defined in:
lib/clearcase_helper/cli.rb

Instance Method Summary collapse

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, options)
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!(options)
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, options)
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, options)
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!(options)
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!(options)
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!(options)
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, options)
  puts view.make_label(label, options)
end

#heavenObject



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, options)
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, options)
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!(options)
end

#versionObject



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, options)
end