nautilus 0.0.2 → 0.0.3
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/nautilus/create.rb +16 -5
- data/lib/nautilus/version.rb +1 -1
- metadata +4 -4
data/lib/nautilus/create.rb
CHANGED
|
@@ -25,18 +25,15 @@ module Nautilus
|
|
|
25
25
|
end
|
|
26
26
|
|
|
27
27
|
# Clear git history
|
|
28
|
-
FileUtils.rm_rf
|
|
28
|
+
FileUtils.rm_rf("#{project_path}/.git")
|
|
29
29
|
|
|
30
30
|
# TODO Change the secret_token.rb
|
|
31
31
|
# Nautilus.search_and_replace secret_token.rb
|
|
32
32
|
|
|
33
33
|
Dir.chdir(project_path) or fail("Couldn't change to #{project_path}")
|
|
34
34
|
|
|
35
|
-
|
|
35
|
+
puts readme
|
|
36
36
|
|
|
37
|
-
Nautilus.run("#{rake_cmd} db:create")
|
|
38
|
-
Nautilus.run("#{rake_cmd} db:create RAILS_ENV=test")
|
|
39
|
-
Nautilus.run("#{rake_cmd} db:migrate")
|
|
40
37
|
end
|
|
41
38
|
|
|
42
39
|
private
|
|
@@ -58,5 +55,19 @@ module Nautilus
|
|
|
58
55
|
raise InvalidInput.new("Project directory (#{project_path}) already exists")
|
|
59
56
|
end
|
|
60
57
|
end
|
|
58
|
+
|
|
59
|
+
def readme
|
|
60
|
+
<<-TEXT
|
|
61
|
+
|
|
62
|
+
Your project is created and you are ready to start coding on your local! Execute the following
|
|
63
|
+
(Setup your .rvmrc if you use that pattern first!)
|
|
64
|
+
* cd #{project_path}
|
|
65
|
+
* bundle install
|
|
66
|
+
* rake db:create:all
|
|
67
|
+
* rake db:migrate
|
|
68
|
+
|
|
69
|
+
TEXT
|
|
70
|
+
|
|
71
|
+
end
|
|
61
72
|
end
|
|
62
73
|
end
|
data/lib/nautilus/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: nautilus
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
hash:
|
|
4
|
+
hash: 25
|
|
5
5
|
prerelease: false
|
|
6
6
|
segments:
|
|
7
7
|
- 0
|
|
8
8
|
- 0
|
|
9
|
-
-
|
|
10
|
-
version: 0.0.
|
|
9
|
+
- 3
|
|
10
|
+
version: 0.0.3
|
|
11
11
|
platform: ruby
|
|
12
12
|
authors:
|
|
13
13
|
- Thomas Newton
|
|
@@ -15,7 +15,7 @@ autorequire:
|
|
|
15
15
|
bindir: bin
|
|
16
16
|
cert_chain: []
|
|
17
17
|
|
|
18
|
-
date: 2011-05-
|
|
18
|
+
date: 2011-05-19 00:00:00 -04:00
|
|
19
19
|
default_executable:
|
|
20
20
|
dependencies:
|
|
21
21
|
- !ruby/object:Gem::Dependency
|