fling 0.0.9 → 0.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGES.md +4 -0
- data/lib/fling/cli.rb +7 -1
- data/lib/fling/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 09d73132372020a7e989e77b337d039a7b20b165
|
4
|
+
data.tar.gz: 0fac52179c51fafcf5425af223cc484c873631d1
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9736b42a458a28dc0fe629598150640f9882ea26b411226f2041296a1ecbbc287fbef0d7ca54f708e0cc6359bd858653b5bb631fe0c12865f95f443da4e133bd
|
7
|
+
data.tar.gz: 1aafb21bcd4d670208103c37722a2e7186c6791fde81b9c0f072d4e62df839914cdf33e89bdcc75d861aca7695be53c7d59fe609aff35a76d595857945ec73a2
|
data/CHANGES.md
CHANGED
data/lib/fling/cli.rb
CHANGED
@@ -2,6 +2,7 @@ require "fling"
|
|
2
2
|
require "thor"
|
3
3
|
require "uri"
|
4
4
|
require "net/http"
|
5
|
+
require "yaml"
|
5
6
|
|
6
7
|
module Fling
|
7
8
|
# The Fling Command Line Interface
|
@@ -65,7 +66,8 @@ module Fling
|
|
65
66
|
exit 1
|
66
67
|
end
|
67
68
|
|
68
|
-
|
69
|
+
base_dir = File.expand_path("~")
|
70
|
+
config_dir = File.join(base_dir, ".tahoe")
|
69
71
|
if File.exist?(config_dir)
|
70
72
|
say "Error: #{config_dir} already exists"
|
71
73
|
exit 1
|
@@ -73,6 +75,10 @@ module Fling
|
|
73
75
|
|
74
76
|
config.render(config_dir)
|
75
77
|
|
78
|
+
File.open(File.join(base_dir, ".fling.yml"), "w", 0600) do |file|
|
79
|
+
file << YAML.dump(salt: config.salt)
|
80
|
+
end
|
81
|
+
|
76
82
|
say "Created #{config_dir}!"
|
77
83
|
say "Start Tahoe by running 'tahoe start'"
|
78
84
|
end
|
data/lib/fling/version.rb
CHANGED