fasta 0.1.0 → 0.1.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/exe/fasta +2 -1
- data/lib/fasta/cli.rb +2 -2
- data/lib/fasta/server/core/responder.rb +2 -2
- data/lib/fasta/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: eac1a562caf536005ee9e27e13c7689c706662f7043be88841df97ee5afe9b65
|
4
|
+
data.tar.gz: 054a93bd53523370748f382526a2e1d86cd410d9e495a8f17a1fc655c38a1d55
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 74537a638f40e10c215ed46692a471bbc5bfc13206ff306fce0fc839e4bb15844c7db06f99b75d6785e9ac71541085a497052610be002c95c592cd716c0beec3
|
7
|
+
data.tar.gz: 1bccd4b62df4690fb824c3c1bb48a540a762d16bf41a7ab119de20103855623078851361114f60df388bedb4f6096aff32a2a79776b28dfec521c60b03f0fcb4
|
data/exe/fasta
CHANGED
data/lib/fasta/cli.rb
CHANGED
@@ -6,11 +6,11 @@ module Fasta
|
|
6
6
|
source_root File.expand_path("../../../templates",__FILE__)
|
7
7
|
|
8
8
|
desc 'some', 'some 2'
|
9
|
-
def
|
9
|
+
def install(name)
|
10
10
|
@name = name
|
11
11
|
directory 'config', "#{name}/config"
|
12
12
|
create_file "#{name}/app/endpoints/.keep"
|
13
|
-
create_file "#{name}/log
|
13
|
+
create_file "#{name}/log/db.log"
|
14
14
|
directory 'app', "#{name}/app"
|
15
15
|
copy_file 'application.rb', "#{name}/application.rb"
|
16
16
|
copy_file 'boot.ru', "#{name}/boot.ru"
|
@@ -5,8 +5,8 @@ require 'pg'
|
|
5
5
|
require 'yaml'
|
6
6
|
require 'erb'
|
7
7
|
|
8
|
-
db_log_file = File.open('log/db.log', File::WRONLY | File::APPEND | File::CREAT)
|
9
|
-
request_log_file = File.open('log/request.log', File::WRONLY | File::APPEND | File::CREAT)
|
8
|
+
db_log_file = File.open('log/db.log', File::WRONLY | File::APPEND | File::CREAT) rescue 0
|
9
|
+
request_log_file = File.open('log/request.log', File::WRONLY | File::APPEND | File::CREAT) rescue 0
|
10
10
|
$logger = ::Logger.new(request_log_file)
|
11
11
|
$logger.level = Logger::INFO
|
12
12
|
|
data/lib/fasta/version.rb
CHANGED