handsome_fencer-circle_c_i 0.1.22 → 0.1.23
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/handsome_fencer/circle_c_i/templates/circleci/containers/app/development.env +12 -9
- data/lib/handsome_fencer/circle_c_i/version.rb +1 -1
- metadata +1 -5
- data/lib/handsome_fencer/circle_c_i/generators/install_generator.rb +0 -7
- data/lib/handsome_fencer/circle_c_i/tasks/generate_key.rake +0 -43
- data/lib/handsome_fencer/circle_c_i/tasks/install.rake +0 -29
- data/lib/handsome_fencer/circle_c_i/tasks/obfuscate.rake +0 -18
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 2c96d95416ef300634672e377ce3685ef0c5a7f82191fca5258d96c01e00e0f7
|
4
|
+
data.tar.gz: aac8fe4013a14eec3f82122484016697e7d6854772af7b3afb29c5657f1ecb69
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ace40c57680dc906778d08d456a2eac83bd681a3733c017ecb1d4d0d3995c50c41ae0ce9a18f29cfdc70da688918b866bb0c6e65ce3ef9215c8b4ca4dfd32ad3
|
7
|
+
data.tar.gz: 1932bdadc455c71a796aa47ea158f6ce6bb27481ba28eb55ff970ff2437125ab8f7913d0e7d9e0612e4d06023dd7545c0aa2b48607603485edf51f908aa90a21
|
@@ -1,9 +1,12 @@
|
|
1
|
-
DOCKERHUB_PASS=
|
2
|
-
DOCKERHUB_EMAIL=
|
3
|
-
DOCKERHUB_USER=
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
1
|
+
DOCKERHUB_PASS=
|
2
|
+
DOCKERHUB_EMAIL=
|
3
|
+
DOCKERHUB_USER=
|
4
|
+
DEPLOY_TAG=${CIRCLE_SHA1:0:7}
|
5
|
+
DEPLOY_PATH=
|
6
|
+
SERVER_HOST=
|
7
|
+
SERVER_USER=root
|
8
|
+
SERVER_PORT=22
|
9
|
+
POSTGRES_USER=postgres
|
10
|
+
POSTGRES_PASSWORD=some-long-secure-password
|
11
|
+
POSTGRES_DB=bacchanal_development
|
12
|
+
DATABASE_HOST=database
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: handsome_fencer-circle_c_i
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.23
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- schadenfred
|
@@ -119,10 +119,6 @@ files:
|
|
119
119
|
- lib/handsome_fencer/circle_c_i/cli/install.rb
|
120
120
|
- lib/handsome_fencer/circle_c_i/cli/obfuscate.rb
|
121
121
|
- lib/handsome_fencer/circle_c_i/crypto.rb
|
122
|
-
- lib/handsome_fencer/circle_c_i/generators/install_generator.rb
|
123
|
-
- lib/handsome_fencer/circle_c_i/tasks/generate_key.rake
|
124
|
-
- lib/handsome_fencer/circle_c_i/tasks/install.rake
|
125
|
-
- lib/handsome_fencer/circle_c_i/tasks/obfuscate.rake
|
126
122
|
- lib/handsome_fencer/circle_c_i/templates/Gemfile
|
127
123
|
- lib/handsome_fencer/circle_c_i/templates/Gemfile.lock
|
128
124
|
- lib/handsome_fencer/circle_c_i/templates/circleci/circle.env
|
@@ -1,43 +0,0 @@
|
|
1
|
-
require 'handsome_fencer/circle_c_i/crypto'
|
2
|
-
require 'thor'
|
3
|
-
|
4
|
-
namespace :handsome_fencer do
|
5
|
-
|
6
|
-
class Hammer < Thor
|
7
|
-
include Thor::Actions
|
8
|
-
end
|
9
|
-
|
10
|
-
namespace :circle_c_i do
|
11
|
-
|
12
|
-
class Hammer < Thor
|
13
|
-
include Thor::Actions
|
14
|
-
end
|
15
|
-
|
16
|
-
desc "generate deploy key"
|
17
|
-
|
18
|
-
task :generate_key do
|
19
|
-
|
20
|
-
if ARGV.include?('--rakefile')
|
21
|
-
environment = ARGV[3]
|
22
|
-
directory = ARGV[4]
|
23
|
-
else
|
24
|
-
environment = ARGV[1]
|
25
|
-
directory = ARGV[2]
|
26
|
-
end
|
27
|
-
|
28
|
-
@cipher = OpenSSL::Cipher.new 'AES-128-CBC'
|
29
|
-
@salt = '8 octets'
|
30
|
-
@new_key = @cipher.random_key
|
31
|
-
|
32
|
-
hammer :create_file, ".circleci/#{environment}.key", Base64.encode64(@new_key)
|
33
|
-
|
34
|
-
exit
|
35
|
-
end
|
36
|
-
|
37
|
-
end
|
38
|
-
private
|
39
|
-
|
40
|
-
def hammer(*args)
|
41
|
-
Hammer.new.send *args
|
42
|
-
end
|
43
|
-
end
|
@@ -1,29 +0,0 @@
|
|
1
|
-
require 'handsome_fencer/circle_c_i/crypto'
|
2
|
-
require 'thor'
|
3
|
-
|
4
|
-
namespace :handsome_fencer do
|
5
|
-
|
6
|
-
namespace :circle_c_i do
|
7
|
-
|
8
|
-
class Hammer < Thor
|
9
|
-
include Thor::Actions
|
10
|
-
end
|
11
|
-
|
12
|
-
desc "Sets up some necessary files for continuous deployments using docker and CircleCI"
|
13
|
-
|
14
|
-
task :install do
|
15
|
-
|
16
|
-
def copy_circle_templates
|
17
|
-
directory "circleci", "./.circleci", recursive: true
|
18
|
-
end
|
19
|
-
|
20
|
-
exit
|
21
|
-
end
|
22
|
-
|
23
|
-
private
|
24
|
-
|
25
|
-
def hammer(*args)
|
26
|
-
Hammer.new.send *args
|
27
|
-
end
|
28
|
-
end
|
29
|
-
end
|
@@ -1,18 +0,0 @@
|
|
1
|
-
require 'handsome_fencer/circle_c_i/crypto'
|
2
|
-
require 'thor'
|
3
|
-
namespace :handsome_fencer do
|
4
|
-
|
5
|
-
namespace :circle_c_i do
|
6
|
-
|
7
|
-
desc "Generaters necessary files for CI using Circle, Docker, and Rails"
|
8
|
-
|
9
|
-
task :obfuscate do
|
10
|
-
|
11
|
-
environment = ARGV[0].nil? ? 'deploy' : ARGV[0]
|
12
|
-
directory = ARGV[1].nil? ? '.circleci' : ARGV[1]
|
13
|
-
|
14
|
-
@cipher = HandsomeFencer::CircleCI::Crypto.new(dkfile: environment)
|
15
|
-
@cipher.obfuscate(directory, environment)
|
16
|
-
end
|
17
|
-
end
|
18
|
-
end
|