autogen_sindb 0.1.1 → 0.1.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/sinatrabase_fs/structure_me.rb +3 -5
- data/lib/sinatrabase_fs/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 213cee4df03453dd3e3a953d76604c43dff3e9b483286565e5f5d41a2b124000
|
4
|
+
data.tar.gz: 9a4a34f5a352750596e116a1aee82c1a7264e57ffbb77b964a91a1eb8c9d23fd
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: df345e83f280b44b793673d8a76f0596158c084ba5fb9536b083d25edf2179d14576a6df792a9298ca79687a96e4106eb58a60481e657ad3668fb20cc7e469b5
|
7
|
+
data.tar.gz: 289128ead3a771ed8b6e1c85e66b02e3af76bfc8605359fc1827e91f70931a907627620b42dee2999be689f159dba23475195944fd13f660193a4bf3249569c0
|
@@ -13,9 +13,7 @@ class SinatrabaseFs::StructureMe
|
|
13
13
|
end
|
14
14
|
|
15
15
|
def make_dirs
|
16
|
-
|
17
|
-
|
18
|
-
FileUtils.cd(curr_dir) do |dir|
|
16
|
+
FileUtils.cd(Dir.pwd) do |dir|
|
19
17
|
%w(app app/controllers app/models app/views config public public/css public/images public/js db/migrate spec).each do |directory|
|
20
18
|
FileUtils.mkdir_p(directory)
|
21
19
|
end
|
@@ -63,7 +61,7 @@ class SinatrabaseFs::StructureMe
|
|
63
61
|
def write_to_config_ru
|
64
62
|
FileUtils.cd(Dir.pwd) do |dir|
|
65
63
|
file = File.open("config.ru", 'w')
|
66
|
-
file.puts "require './config/environment'\n\nbegin\n\tfi_check_migration\n\n\tuse Rack::MethodOverride\n\n\trun
|
64
|
+
file.puts "require './config/environment'\n\nbegin\n\tfi_check_migration\n\n\tuse Rack::MethodOverride\n\n\trun App # or whatever the app controller module/class name you want eg. ApplicationController\nrescue ActiveRecord::PendingMigrationError => err\n\tSTDERR.puts err\n\texit 1\nend"
|
67
65
|
file.close
|
68
66
|
end
|
69
67
|
end
|
@@ -84,4 +82,4 @@ class SinatrabaseFs::StructureMe
|
|
84
82
|
end
|
85
83
|
end
|
86
84
|
|
87
|
-
end
|
85
|
+
end
|