gitcloudcli 1.0.4 → 1.0.5

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
  SHA256:
3
- metadata.gz: 393ea3023d0b422bae8a9c39e2f26457fd673c7a78d733e88d8dd6e2e7dd4011
4
- data.tar.gz: b47d9624d7f0805bfecc1b4f7e6552c453b19e0fd60146def0d9ed2d834da3c2
3
+ metadata.gz: 98c24cb8684d3f03c0e300e0f303341b19f8cab462f94fec9cf46a62f079e883
4
+ data.tar.gz: e5ace3274c6ab5a87fe8134fbeea7072cd11eb939f56d4547cbcc351e08eb64e
5
5
  SHA512:
6
- metadata.gz: 5af0e9ba1e9977bf8d25e1854fea5bf467de85dca8dcc4ab725907adaba82fb3b515a5c788c8ef50a00acd6872eb2b6950e426126bdd1bed80d809512ac14de4
7
- data.tar.gz: ca79540b0c04b48c0a5fc28680eb41936b783ea54c1b62c54cf9a90fba0f32362da6d394b783140fb8df964f8a7696d48bbffb7ca145bb469706bd33d2a3d25d
6
+ metadata.gz: 651850d6b629622dedaee8c898394391c6054ea355ddd1969c3279338e2a095adffefb930b64787f8146613923f2d4e4c9d30afa6465e56cc4e55a69dd12e92a
7
+ data.tar.gz: 75b476f3a99a72db44d23d0b2e274368e957d65d79947cb86ca2141a4310404f52c866cf84e8e684cdae89bbbf3473450975d0f87b2fa2d5efef00cd86cb2988
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- gitcloudcli (1.0.3)
4
+ gitcloudcli (1.0.4)
5
5
  thor
6
6
 
7
7
  GEM
@@ -5,10 +5,14 @@ module Gitcloudcli
5
5
  def configFile(model="r")
6
6
  yaml_dir = Dir.home + "/.gitcloud"
7
7
  yaml_name = "gitcloud.yaml"
8
+ yaml_path = yaml_dir + "/#{yaml_name}"
8
9
  if !Dir.exist?(yaml_dir)
9
10
  Dir.mkdir(yaml_dir)
10
11
  end
11
- file = File.open(yaml_dir + "/#{yaml_name}", model)
12
+ if !File.exist? yaml_path
13
+ File.open(yaml_path, 'w').close
14
+ end
15
+ file = File.open(yaml_path, model)
12
16
  end
13
17
 
14
18
  def configHash
@@ -1,3 +1,3 @@
1
1
  module Gitcloudcli
2
- VERSION = "1.0.4"
2
+ VERSION = "1.0.5"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: gitcloudcli
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.4
4
+ version: 1.0.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - zhangheng