Class: Gzr::Commands::Project
- Inherits:
-
Thor
- Object
- Thor
- Gzr::Commands::Project
show all
- Defined in:
- lib/gzr/commands/project.rb,
lib/gzr/commands/project/ls.rb,
lib/gzr/commands/project/cat.rb,
lib/gzr/commands/project/branch.rb,
lib/gzr/commands/project/deploy.rb,
lib/gzr/commands/project/import.rb,
lib/gzr/commands/project/update.rb,
lib/gzr/commands/project/checkout.rb,
lib/gzr/commands/project/deploy_key.rb
Defined Under Namespace
Classes: Branch, Cat, Checkout, Deploy, DeployKey, Import, Ls, Update
Instance Method Summary
collapse
Instance Method Details
#branch(project_id) ⇒ Object
114
115
116
117
118
119
120
121
|
# File 'lib/gzr/commands/project.rb', line 114
def branch(project_id)
if options[:help]
invoke :help, ['branch']
else
require_relative 'project/branch'
Gzr::Commands::Project::Branch.new(project_id, options).execute
end
end
|
#cat(project_id) ⇒ Object
58
59
60
61
62
63
64
65
|
# File 'lib/gzr/commands/project.rb', line 58
def cat(project_id)
if options[:help]
invoke :help, ['cat']
else
require_relative 'project/cat'
Gzr::Commands::Project::Cat.new(project_id,options).execute
end
end
|
#checkout(project_id, name) ⇒ Object
140
141
142
143
144
145
146
147
|
# File 'lib/gzr/commands/project.rb', line 140
def checkout(project_id,name)
if options[:help]
invoke :help, ['checkout']
else
require_relative 'project/checkout'
Gzr::Commands::Project::Checkout.new(project_id, name, options).execute
end
end
|
#deploy(project_id) ⇒ Object
127
128
129
130
131
132
133
134
|
# File 'lib/gzr/commands/project.rb', line 127
def deploy(project_id)
if options[:help]
invoke :help, ['deploy']
else
require_relative 'project/deploy'
Gzr::Commands::Project::Deploy.new(project_id, options).execute
end
end
|
#deploy_key(project_id) ⇒ Object
93
94
95
96
97
98
99
100
|
# File 'lib/gzr/commands/project.rb', line 93
def deploy_key(project_id)
if options[:help]
invoke :help, ['deploy_key']
else
require_relative 'project/deploy_key'
Gzr::Commands::Project::DeployKey.new(project_id,options).execute
end
end
|
#import(project_file) ⇒ Object
70
71
72
73
74
75
76
77
|
# File 'lib/gzr/commands/project.rb', line 70
def import(project_file)
if options[:help]
invoke :help, ['import']
else
require_relative 'project/import'
Gzr::Commands::Project::Import.new(project_file,options).execute
end
end
|
#ls ⇒ Object
42
43
44
45
46
47
48
49
|
# File 'lib/gzr/commands/project.rb', line 42
def ls(*)
if options[:help]
invoke :help, ['ls']
else
require_relative 'project/ls'
Gzr::Commands::Project::Ls.new(options).execute
end
end
|
#update(project_id, project_file) ⇒ Object
82
83
84
85
86
87
88
89
|
# File 'lib/gzr/commands/project.rb', line 82
def update(project_id,project_file)
if options[:help]
invoke :help, ['update']
else
require_relative 'project/update'
Gzr::Commands::Project::Update.new(project_id,project_file,options).execute
end
end
|