mccloud 0.0.5 → 0.0.6
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.
- data/Gemfile.lock +1 -1
- data/lib/mccloud/command/init.rb +3 -2
- data/lib/mccloud/session.rb +3 -2
- data/lib/mccloud/version.rb +1 -1
- metadata +3 -3
data/Gemfile.lock
CHANGED
data/lib/mccloud/command/init.rb
CHANGED
|
@@ -367,8 +367,9 @@ module Mccloud
|
|
|
367
367
|
puts
|
|
368
368
|
|
|
369
369
|
if (confirmed)
|
|
370
|
-
|
|
371
|
-
|
|
370
|
+
fogfilename="#{File.join(ENV['HOME'],".fog")}"
|
|
371
|
+
fogfile=File.new(fogfilename,"w")
|
|
372
|
+
FileUtils.chmod(0600,fogfilename)
|
|
372
373
|
fogfile.puts "#{snippet}"
|
|
373
374
|
fogfile.close
|
|
374
375
|
else
|
data/lib/mccloud/session.rb
CHANGED
|
@@ -117,10 +117,11 @@ module Mccloud
|
|
|
117
117
|
confirmed=agree("Do you wan to save this?: ")
|
|
118
118
|
|
|
119
119
|
if (confirmed)
|
|
120
|
-
|
|
120
|
+
fogfilename="#{File.join(ENV['HOME'],".fog")}"
|
|
121
|
+
fogfile=File.new(fogfilename,"w")
|
|
121
122
|
fogfile.puts "#{snippet}"
|
|
122
123
|
fogfile.close
|
|
123
|
-
FileUtils.chmod(0600,
|
|
124
|
+
FileUtils.chmod(0600,fogfilename)
|
|
124
125
|
else
|
|
125
126
|
puts "Ok, we won't write it, but we continue with your credentials in memory"
|
|
126
127
|
exit -1
|
data/lib/mccloud/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: mccloud
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
hash:
|
|
4
|
+
hash: 19
|
|
5
5
|
prerelease:
|
|
6
6
|
segments:
|
|
7
7
|
- 0
|
|
8
8
|
- 0
|
|
9
|
-
-
|
|
10
|
-
version: 0.0.
|
|
9
|
+
- 6
|
|
10
|
+
version: 0.0.6
|
|
11
11
|
platform: ruby
|
|
12
12
|
authors:
|
|
13
13
|
- Patrick Debois
|