meroku 2.0.14 → 2.0.16

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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: eeb7e005dd6cb4493aeb915a4cb56b2e7a73c53d
4
- data.tar.gz: 4b42c6be2a26fd879e989c396d4155f039a26c23
3
+ metadata.gz: 914fbe09588246caeb82b0732065ed71730d794d
4
+ data.tar.gz: fcc0a01217811a013830189c63b5f70eeccbecd9
5
5
  SHA512:
6
- metadata.gz: '085a5dfd7485d050b6da025d2f6f52de8faf9a8f2de5f60a2404f4c637002c3af007b386234ba46914a38c4216a0bf9cc8ce3c9afc925fb8b7dd2c0a388780ac'
7
- data.tar.gz: 28b99e7e9dbb9c6acc6599417bf3d93a810f35b04041cb0a77a9a02bfcd63555c2730259467a611b6a5fc4249b297d585b695838d44df7d5b6059b251c7cdae9
6
+ metadata.gz: ce371cc567888fcd8dbcf76514be3498df97d0ca2310b4116f27ce4ef2ef3a8ce932b71f9c743e73cfd1d7e08dd501c34a86d5b0b0b34d0d5948842138baddf3
7
+ data.tar.gz: f70832a1acf37a970c9d80ec1e021e75e3339ba7e04e89a30efaf137ab57f1c989d39acf62687da867c6ec6d2192eaf35b7abb9d06e56d3e45f4aadb2088d14e
data/README.md CHANGED
@@ -71,9 +71,34 @@ And deploy
71
71
  ## DOCUMENTATION FOR MAINTAINERS
72
72
 
73
73
 
74
- ### Prereqs
74
+ ### Secrets
75
75
 
76
- You will need a copy of the file `.secret`. Place it at `~/.meroku/.secret`
76
+ The meroku secret is a 12 charactor hex string, eg. 'dcb528615aa4'
77
+ All other secrets are derived/downloaded from it.
78
+
79
+ After loggin in via the CLI, these two files are populated
80
+ ~/.meroku/.apiusername
81
+ ~/.meroku/.apisecret
82
+
83
+ Frontend (rails app)
84
+
85
+ CI
86
+ CLI
87
+ run_instances()
88
+ requires
89
+ ENV['AWS_ACCESS_KEY']
90
+ ENV['AWS_SECRET']
91
+
92
+ Developer workstation
93
+ CLI
94
+ run_instances()
95
+ requires
96
+ ENV['AWS_ACCESS_KEY']
97
+ ENV['AWS_SECRET']
98
+
99
+
100
+
101
+ OLD: You will need a copy of the file `.secret`. Place it at `~/.meroku/.secret`
77
102
 
78
103
 
79
104
  ### Commands
@@ -5,9 +5,14 @@ module Meroku
5
5
  def self.load(admin: false)
6
6
  return unless admin
7
7
  env_file = Dir.home + '/.meroku/meroku.env'
8
- abort "error: File not found (#{env_file})" unless File.exist?(env_file)
8
+ attempt_download unless File.exist?(env_file)
9
9
  Dotenv.load(env_file)
10
10
  end
11
+
12
+ def self.attempt_download
13
+ abort 'ENV["SECRET"] not found' unles ENV['SECRET']
14
+ `curl -o ~/.meroku/meroku.env https://s3.amazonaws.com/#{ENV['SECRET']}/meroku.env`
15
+ end
11
16
  end
12
17
  end
13
18
  end
@@ -1,3 +1,3 @@
1
1
  module Meroku
2
- VERSION = "2.0.14"
2
+ VERSION = "2.0.16"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: meroku
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.0.14
4
+ version: 2.0.16
5
5
  platform: ruby
6
6
  authors:
7
7
  - Sam Weerasinghe