ecb 0.0.7 → 0.0.8

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: d1a4bc0fcb2ed1ca5c12dc9b213915b3f5aff4a2
4
- data.tar.gz: e40fba018c4293c7c0a4aee1d0aa8e6d36baa075
3
+ metadata.gz: 1c1164f3a609583bca15a0aed91d3344e3c3d9f1
4
+ data.tar.gz: 444ccf73593fba35a22582835cc2c379648d7098
5
5
  SHA512:
6
- metadata.gz: 9dabf738b3cf1f9d87f7ec9eb45dc9c58753e5ab11c3b73988c1d52e0c93e225ccf1cd7050d1e8fe0688548b1906d54238fcf61790a418489ab7ac617e1c8fd8
7
- data.tar.gz: f875c543f29c4590df40fa482e8c0016bc5f65df21bdaf64b4911c9f87dc052217e48b471c57d7ca16500b683cef3da5e9bb59b03084e4a629431f68268702d1
6
+ metadata.gz: d2177e86eb7b6539ac2b902250c5eced4b53d2a78c1db415d2c98e3ce7254476bb7f933eaeec65260e1fb682b84fd003ed71d1a7ef838c63b7aea7cf1b6927fe
7
+ data.tar.gz: ebbaf7477241eeaeb0f86a4c872ad7790ea37f6bb3bc8d552a3dc0a6deaa1fb644ca4a581c67173a61019a6de53bcf3d0ea42f0202a2a42b7c007addab19296e
@@ -82,11 +82,12 @@ module Commands
82
82
  config_repo = options[:config_repo]
83
83
  config_repo_url = EcbSharedLib.prepare_config_repo(config_repo)
84
84
  info = EcbSharedLib.read_repo_config(config_repo_url, config_name)
85
-
85
+ build_config = EcbSharedLib.read_build_config(config_repo_url)
86
+ byebug
86
87
  # Now that we have the json, prepare the world by creating a directory with the config name and placing
87
88
  # the various repos beneath that. The directory is created relative to the current directory.
88
89
 
89
- cmd = "security unlock-keychain -p LacyTheDog ~/Library/Keychains/login.keychain"
90
+ cmd = "security unlock-keychain -p #{build_config[:login_password]} ~/Library/Keychains/login.keychain"
90
91
  EcbSharedLib::CL.do_cmd(cmd, '.')
91
92
 
92
93
  cmd = "rm -Rf build"
@@ -178,6 +178,12 @@ module EcbSharedLib
178
178
  write_json_file(map,settings_path, err_msg)
179
179
  end
180
180
 
181
+ # read and return the config info for this repo
182
+ def self.read_build_config(repo_url, err_msg = nil)
183
+ config_file_path = "#{full_config_path(repo_url)}/configs/build#{EcbSharedLib::CONFIG_SUFFIX}"
184
+ read_json_file(config_file_path, err_msg)
185
+ end
186
+
181
187
  # read and return the config info for this repo
182
188
  def self.read_repo_config(repo_url, config_name, err_msg = nil)
183
189
  config_file_path = "#{full_config_path(repo_url)}/configs/#{config_name}#{EcbSharedLib::CONFIG_SUFFIX}"
data/lib/info.rb CHANGED
@@ -7,6 +7,6 @@
7
7
  #
8
8
  class Info
9
9
  def self.version
10
- "0.0.7"
10
+ "0.0.8"
11
11
  end
12
12
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ecb
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.7
4
+ version: 0.0.8
5
5
  platform: ruby
6
6
  authors:
7
7
  - Rick Hoiberg