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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: f35ca46cbcb9d04716dfa9bf558a86326ac8f0de
4
- data.tar.gz: 319bc054a9f92649614792792cb36ac421965783
3
+ metadata.gz: 09d73132372020a7e989e77b337d039a7b20b165
4
+ data.tar.gz: 0fac52179c51fafcf5425af223cc484c873631d1
5
5
  SHA512:
6
- metadata.gz: 2ce8f76eb4a4ee227c02a9a7b4fb9f0cec139fd16e8cc2c7d5229adb34afe98e03a3af7deb3f597de8081907d93dd796ccca554757c933f094dd23bde22ab1fc
7
- data.tar.gz: cedd362599caa3ef1b6011893d4db88561232be9dd885b3afea87295d4a875df9be5468dbf8d51290f1f974b1ea7a55b3e0b39e8a9f8caedcd89f7cef94f6142
6
+ metadata.gz: 9736b42a458a28dc0fe629598150640f9882ea26b411226f2041296a1ecbbc287fbef0d7ca54f708e0cc6359bd858653b5bb631fe0c12865f95f443da4e133bd
7
+ data.tar.gz: 1aafb21bcd4d670208103c37722a2e7186c6791fde81b9c0f072d4e62df839914cdf33e89bdcc75d861aca7695be53c7d59fe609aff35a76d595857945ec73a2
data/CHANGES.md CHANGED
@@ -1,3 +1,7 @@
1
+ 0.1.0 (2015-06-24)
2
+ ------------------
3
+ * Create initial ~/.fling.yml during 'fling config'
4
+
1
5
  0.0.9 (2015-06-23)
2
6
  ------------------
3
7
  * Initial tahoe.cfg.erb template
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
- config_dir = File.expand_path("~/.tahoe")
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
@@ -1,4 +1,4 @@
1
1
  # Simple secret sharing over Tahoe-LAFS
2
2
  module Fling
3
- VERSION = "0.0.9"
3
+ VERSION = "0.1.0"
4
4
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fling
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.9
4
+ version: 0.1.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tony Arcieri