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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 173beb607f725113b969da9583489cd7390a99b38246dcfd4b214d7686427efd
4
- data.tar.gz: e6abe0e6055d8c9365b5446f5da1b67ad7910892e294921b9532ba45af6e3acc
3
+ metadata.gz: 2c96d95416ef300634672e377ce3685ef0c5a7f82191fca5258d96c01e00e0f7
4
+ data.tar.gz: aac8fe4013a14eec3f82122484016697e7d6854772af7b3afb29c5657f1ecb69
5
5
  SHA512:
6
- metadata.gz: 390b9b5b5c165acc865192ceb1c8a1bd47d804b97a2e8b908473501a1365cdada39b991d9a4be820f17e4608726d45709ecb3a21fc2fb3ad0e984716158e1115
7
- data.tar.gz: 26f1ac772c36ff144977d807ab5b5d029956694a54dac2cfc02fff61bca157a9c66f8d3e24ee6740aae2a73c269b52252ab7c0b96783f2b7858476c339e7bd58
6
+ metadata.gz: ace40c57680dc906778d08d456a2eac83bd681a3733c017ecb1d4d0d3995c50c41ae0ce9a18f29cfdc70da688918b866bb0c6e65ce3ef9215c8b4ca4dfd32ad3
7
+ data.tar.gz: 1932bdadc455c71a796aa47ea158f6ce6bb27481ba28eb55ff970ff2437125ab8f7913d0e7d9e0612e4d06023dd7545c0aa2b48607603485edf51f908aa90a21
@@ -1,9 +1,12 @@
1
- DOCKERHUB_PASS="set me"
2
- DOCKERHUB_EMAIL="set me"
3
- DOCKERHUB_USER="set me"
4
- PUSH_DEPLOY_TAG=${CIRCLE_PREVIOUS_BUILD_NUM}_${CIRCLE_SHA1:0:7}
5
- DEPLOY_TAG=${CIRCLE_BUILD_NUM}_${CIRCLE_SHA1:0:7}
6
- DEPLOY_PATH="name of our app"
7
- SERVER_HOST="server ip address"
8
- SERVER_USER="probably root"
9
- SERVER_PORT="probably 22"
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
@@ -1,5 +1,5 @@
1
1
  module HandsomeFencer
2
2
  module CircleCI
3
- VERSION = '0.1.22'
3
+ VERSION = '0.1.23'
4
4
  end
5
5
  end
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.22
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,7 +0,0 @@
1
- require 'thor'
2
- require 'thor/group'
3
-
4
- class HandsomeFencer::CircleCI::Generator < Thor::Group
5
- include Thor::Actions
6
- desc 'Generate a new filesystem structure'
7
- end
@@ -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