deus_ex 0.0.1 → 0.0.2

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: 4030dc909cd62c70b03f3193e8908c02528123c3
4
- data.tar.gz: 6ed2f7c51203dca69c528d8309d28370947fb0bd
3
+ metadata.gz: 5e90453d65142296451cb08da20fe1d7ca0375cc
4
+ data.tar.gz: 71525b343f4570674a6c718dd27191cf4c130b19
5
5
  SHA512:
6
- metadata.gz: 8f2c76e7b7aabe7b9a17efecb17d1d758668197640524565696a46c99fae1fcc0799519aaba8aeb62647db27054641a94bc95579e4a0bf483c4b0674980a2853
7
- data.tar.gz: 0b212b3ef048f8e095fbd1a1d7c3a7bf73c689d637fa67a6911af984a2ddae64fa43e827cf2bb5409af5e437170d9d907955adc433e5c05ad495dc788ae8a51a
6
+ metadata.gz: 258effc6cfdcf61c63d09d0e549e6f00df30d8d4e91e3e8910b131c5cfc810fc63a60bf38a9110c2d77e3c4579bd88af9df8877266ca13c76bf46a8fe5f883dd
7
+ data.tar.gz: 56c40f0def41dc501d6ec593e017741a0cc0ccd3d77c1a5b9dfb68461616626469ff604b8d29943f7f135468f81fb454d62211c2edd023533641fb4a60fdd473
data/TODO.md CHANGED
@@ -1,16 +1,6 @@
1
- Provide a script to:
1
+ ### GENERAL
2
+ * Detect missing credentials
3
+ * Specify SSH identity to use in the git push
2
4
 
3
- 1. Provision an AWS micro instance
4
- 2. Set it up to host a public git repo
5
- 3. Push the current git repo to the AWS instance
6
- 1. Add a remote pointing to the AWS instance
7
- 2. Push to the remote
8
- 3. Removes the remote
9
- 4. Displays the public git URL for use in a deployment
10
- 5. Provides a means to deprovision the instance after the deploy is done
11
-
12
- Additionally, there should be a Capistrano plugin that:
13
-
14
- 1. Does 1-3 above
15
- 2. Uses the public git URL for a live deploy
16
- 3. Automatically deprovisions the instance after the deploy is done
5
+ ### CAPISTRANO
6
+ * Automatically provision / push / use the public URL to deploy / deprovision
data/lib/deus_ex/aws.rb CHANGED
@@ -13,7 +13,6 @@ module DeusEx
13
13
  aws.setup_server
14
14
  aws.setup_repository
15
15
  aws.setup_git_remote
16
- aws.announce_deploy_remote
17
16
  rescue Exception => e
18
17
  aws.log "error: #{e.inspect}"
19
18
  aws.clean_up
@@ -30,7 +29,7 @@ module DeusEx
30
29
  @connection = Fog::Compute.new({
31
30
  :provider => 'AWS'
32
31
  })
33
- log "connection complete"
32
+ log "connection established"
34
33
  end
35
34
 
36
35
  def setup_server
@@ -54,23 +53,22 @@ module DeusEx
54
53
 
55
54
  def setup_git_remote
56
55
  if system('git rev-parse')
57
- log "adding git remote"
56
+ log "adding local git remote"
58
57
  system "git remote add #{GIT_REMOTE_NAME} #{git_remote}"
59
58
 
60
59
  log "pushing to remote"
61
60
  system "git push #{GIT_REMOTE_NAME} master"
62
61
 
63
- log "removing git remote"
62
+ log "removing local git remote"
64
63
  system "git remote rm #{GIT_REMOTE_NAME}"
64
+
65
+ log ""
66
+ log "you can now deploy from #{git_remote}"
65
67
  else
66
68
  warn "not in a git repo"
67
69
  end
68
70
  end
69
71
 
70
- def announce_deploy_remote
71
- log "\nyou can now deploy from #{git_remote}\n"
72
- end
73
-
74
72
  def clean_up
75
73
  if @server
76
74
  @server.destroy
@@ -1,3 +1,3 @@
1
1
  module DeusEx
2
- VERSION = "0.0.1"
2
+ VERSION = "0.0.2"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: deus_ex
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1
4
+ version: 0.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ben Scofield