codegears 0.0.9.pre → 0.0.10.pre
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
data/lib/cg/command/app.rb
CHANGED
@@ -10,14 +10,15 @@ module Command
|
|
10
10
|
puts "#{k.capitalize} #{v.first}\n".red
|
11
11
|
end
|
12
12
|
else
|
13
|
-
puts "Application successfully created
|
13
|
+
puts "Application successfully created.".green
|
14
14
|
puts "Add the following lines to the file config/initializers/codegears.rb:\n".green
|
15
|
+
puts "require \"cg\"\n".green
|
15
16
|
puts "CG::App.configure do |instance|".green
|
16
17
|
puts " instance.id = \"#{response['id']}\"".green
|
17
18
|
puts " instance.secret_id = \"#{response['secret_id']}\"".green
|
18
19
|
puts " instance.secret_token = \"#{response['secret_token']}\"\n".green
|
19
|
-
puts "end\n"
|
20
|
-
puts "And restart application to start using the CodeGears platform
|
20
|
+
puts "end\n".green
|
21
|
+
puts "And restart application to start using the CodeGears platform.".green
|
21
22
|
end
|
22
23
|
end
|
23
24
|
end
|
data/lib/cg/version.rb
CHANGED
@@ -1,4 +1,5 @@
|
|
1
1
|
require "cg/api"
|
2
|
+
require "colorize"
|
2
3
|
|
3
4
|
module Cg
|
4
5
|
module Generators
|
@@ -11,6 +12,7 @@ module Cg
|
|
11
12
|
def create_config_file
|
12
13
|
init_settings
|
13
14
|
template "config.rb.template", "config/initializers/codegears.rb"
|
15
|
+
puts "Restart application to start using the CodeGears platform.".green
|
14
16
|
end
|
15
17
|
|
16
18
|
private
|