deus_ex 0.0.1 → 0.0.2
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 +4 -4
- data/TODO.md +5 -15
- data/lib/deus_ex/aws.rb +6 -8
- data/lib/deus_ex/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 5e90453d65142296451cb08da20fe1d7ca0375cc
|
4
|
+
data.tar.gz: 71525b343f4570674a6c718dd27191cf4c130b19
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 258effc6cfdcf61c63d09d0e549e6f00df30d8d4e91e3e8910b131c5cfc810fc63a60bf38a9110c2d77e3c4579bd88af9df8877266ca13c76bf46a8fe5f883dd
|
7
|
+
data.tar.gz: 56c40f0def41dc501d6ec593e017741a0cc0ccd3d77c1a5b9dfb68461616626469ff604b8d29943f7f135468f81fb454d62211c2edd023533641fb4a60fdd473
|
data/TODO.md
CHANGED
@@ -1,16 +1,6 @@
|
|
1
|
-
|
1
|
+
### GENERAL
|
2
|
+
* Detect missing credentials
|
3
|
+
* Specify SSH identity to use in the git push
|
2
4
|
|
3
|
-
|
4
|
-
|
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
|
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
|
data/lib/deus_ex/version.rb
CHANGED