Class: Milkshake::App
- Inherits:
-
Thor
- Object
- Thor
- Milkshake::App
show all
- Extended by:
- Defaults
- Includes:
- Actions, Helpers
- Defined in:
- lib/milkshake/app.rb,
lib/milkshake/app/actions.rb,
lib/milkshake/app/helpers.rb,
lib/milkshake/app/defaults.rb
Defined Under Namespace
Modules: Actions, Defaults, Helpers
Instance Method Summary
collapse
Methods included from Defaults
default_author, default_description, default_email, default_environment, default_summary, default_website, rename_task
Instance Method Details
#create_app(path) ⇒ Object
52
53
54
55
56
57
58
59
|
# File 'lib/milkshake/app.rb', line 52
def create_app(path)
install_rails! path
install_app!
if self.options[:'shared-data']
self.options[:'git'] = self.options[:'git-data']
ensure_extrernalized_data! self.options[:'shared-data']
end
end
|
#create_gem(path) ⇒ Object
94
95
96
97
98
99
100
101
102
103
104
|
# File 'lib/milkshake/app.rb', line 94
def create_gem(path)
name = File.basename(path)
assert_valid_gem_name! name
install_rails! path
install_app!
install_gem! name
if self.options[:'shared-data']
self.options[:'git'] = self.options[:'git-data']
ensure_extrernalized_data! self.options[:'shared-data']
end
end
|
#create_host(path) ⇒ Object
115
116
117
118
119
120
121
122
123
|
# File 'lib/milkshake/app.rb', line 115
def create_host(path)
install_rails! path
install_app!
install_host!
if self.options[:'shared-data']
self.options[:'git'] = self.options[:'git-data']
ensure_extrernalized_data! self.options[:'shared-data']
end
end
|
178
179
180
|
# File 'lib/milkshake/app.rb', line 178
def (path)
externalize_data! path
end
|
#info ⇒ Object
33
34
35
36
37
38
39
40
41
|
# File 'lib/milkshake/app.rb', line 33
def info
goto_rails do
load_environment!
puts "Loaded gems:"
data = Milkshake.environment.gemspecs.collect { |gemspec| [gemspec.name, gemspec.version] }
shell.print_table(data)
end
end
|
#install_app ⇒ Object
129
130
131
|
# File 'lib/milkshake/app.rb', line 129
def install_app
install_app!
end
|
#install_gem(name) ⇒ Object
158
159
160
161
162
|
# File 'lib/milkshake/app.rb', line 158
def install_gem(name)
assert_valid_gem_name! name
install_app!
install_gem! name
end
|
#install_host ⇒ Object
165
166
167
168
|
# File 'lib/milkshake/app.rb', line 165
def install_host
install_app!
install_host!
end
|
#link_data(path) ⇒ Object
184
185
186
|
# File 'lib/milkshake/app.rb', line 184
def link_data(path)
link_externalized_data! path
end
|