skynet-deploy 2.1.0 → 2.1.1
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.
- checksums.yaml +4 -4
- data/lib/skynet/cli.rb +3 -3
- data/lib/skynet/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: cbe9e9e89c88d603c82df45d90035088c02a4bc018969fef5d0bb03ae04b2e24
|
4
|
+
data.tar.gz: fde3818a0d6a6013b949e111641b9a004fe36173a0ea4d4f589e6e7ae9551598
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a302c9ae57379d637467324a6336264bf0c5f5738e5405a1b34480d46d0a7fb3c6b35ec4f18a6dc06da56ddb44353d870c32af608d0af172c95697f726f314a3
|
7
|
+
data.tar.gz: 40b3db840a1dbb3cb79077127a54f5619fe0cb77933b7c97931920145db18e95e3b4b3f2f1255fb438fd4cdfab874b9d82a0e27009986f2052d9015437ba7924
|
data/lib/skynet/cli.rb
CHANGED
@@ -93,7 +93,7 @@ module Skynet
|
|
93
93
|
desc 'config', 'Run a wizard to append a new project to existing config.yml'
|
94
94
|
method_option :file, type: :string, default: './config.yml', aliases: '-f', desc: 'Configuration file'
|
95
95
|
def config
|
96
|
-
copy_file 'config.yml', options[:file] unless File.
|
96
|
+
copy_file 'config.yml', options[:file] unless File.exist? options[:file]
|
97
97
|
run_wizard options[:file]
|
98
98
|
end
|
99
99
|
|
@@ -102,7 +102,7 @@ module Skynet
|
|
102
102
|
method_option :output, type: :string, default: './post-receive', aliases: '-o', desc: 'Output file'
|
103
103
|
method_option :server, type: :string, default: 'http://localhost:7575', aliases: '-s', desc: 'Location of running skynet server'
|
104
104
|
def hook(project)
|
105
|
-
if File.
|
105
|
+
if File.exist? options[:output]
|
106
106
|
Skynet.logger.fatal %{Output file "#{options[:output]}" already exists}
|
107
107
|
exit 1
|
108
108
|
end
|
@@ -118,7 +118,7 @@ module Skynet
|
|
118
118
|
end
|
119
119
|
|
120
120
|
def load_configuration(file)
|
121
|
-
unless File.
|
121
|
+
unless File.exist? file
|
122
122
|
Skynet.logger.fatal %{Configuration file "#{file}" does not exist}
|
123
123
|
exit 1
|
124
124
|
end
|
data/lib/skynet/version.rb
CHANGED