ey-scp 0.1.0 → 0.2.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (6) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +13 -2
  3. data/bin/ey-scp +1 -0
  4. data/ey-scp.gemspec +2 -2
  5. metadata +31 -28
  6. data/LICENSE.txt +0 -22
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: be56694762720df74c94fe1bed7521337650eaff
4
- data.tar.gz: 43cc9443e1e20571772485c009b01af9d9bd828b
3
+ metadata.gz: bb2d85190e06c4933ae2ee60aa0d7bf5a0721838
4
+ data.tar.gz: 91a4c9132ea811b2fa3c32aa830643414c32c406
5
5
  SHA512:
6
- metadata.gz: cacfcd5686046c0c79fc7a33dcee62102d01a1c72112eefc6d440795583210b119d369362659bf932f7e12f1f30bf1359b51be635350a6d38928c3dbea1a6ab3
7
- data.tar.gz: 315002c101086afe9e998908fc913f426bc95c512868f6fb66bbd8b007c27f2b405e31d05f7f29dd9253e02c9fc744fd6137f1ecbbdee742df5968a05894c3d2
6
+ metadata.gz: bf5d76cbf544e75a583a6ab97d4edb4715aa90c1aa125e83890b484456cc285f559f8bb8799fc87a37f5784856c9a4ffaeb43fdf8ec94855ea498eca4d14f720
7
+ data.tar.gz: c5ff5872aeb35bb2a8a3a4cf05bd18acda02134a7e05b6261b421d456df1be746bf3022f5c7c4452e68e1779e421d5a6f4db77346022b027cc8a175669593176
data/README.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # ey-scp
2
2
 
3
- Rubygem to quickly and painlessly deploy configuration files to multiple
3
+ Provides a CLI to quickly and painlessly deploy configuration files to multiple
4
4
  instances on EngineYard
5
5
 
6
6
  ## Installation
@@ -15,11 +15,12 @@ instances on EngineYard
15
15
  ## Usage
16
16
 
17
17
  1. Run
18
+
18
19
  ey login
19
20
 
20
21
  from your project directory.
21
22
 
22
- 2. Use the ```ey-scp``` from any directory with the following syntax:
23
+ 2. Use ```ey-scp``` from any directory with the following syntax:
23
24
 
24
25
  ey-scp -e ENVIRONMENT [OPTIONS] LOCAL_SOURCE_FILE REMOTE_DESTINATION
25
26
 
@@ -27,6 +28,16 @@ instances on EngineYard
27
28
 
28
29
  ey-scp -e production --app-servers ~/local/project/config/foo.yml /remote/project/path/config
29
30
 
31
+ ### Specifying target instances
32
+
33
+ Option | Uploads to instances with roles of
34
+ ------ | ----------------------------------
35
+ --app-servers | solo, app_master, app
36
+ --app-master | solo, app_master
37
+ --db-servers | solo, db_master, db_slave
38
+ --db-master | solo, db_master
39
+ --db-slaves | solo, db_slave
40
+
30
41
  ## Contributing
31
42
 
32
43
  Right now, we could really use someone to refactor the code so that it's less
data/bin/ey-scp CHANGED
@@ -14,6 +14,7 @@ require 'net/scp'
14
14
 
15
15
  ROLES = {
16
16
  app_servers: {flag: '--app-servers', roles: ['solo', 'app', 'app_master'], title: 'application servers'},
17
+ app_master: {flag: '--app-master', roles: ['solo', 'app_master'], title: 'application master'},
17
18
  db_servers: {flag: '--db-servers', roles: ['solo', 'db_master', 'db_slave'], title: 'database servers'},
18
19
  db_master: {flag: '--db-master', roles: ['solo', 'db_master'], title: 'database master'},
19
20
  db_slaves: {flag: '--db-slaves', roles: ['solo', 'db_slave'], title: 'database slaves'}
@@ -1,10 +1,10 @@
1
1
  # coding: utf-8
2
2
  Gem::Specification.new do |spec|
3
3
  spec.name = "ey-scp"
4
- spec.version = '0.1.0'
4
+ spec.version = '0.2.0'
5
5
  spec.authors = ["Steven Dunlap"]
6
6
  spec.email = ["steven@roadtrippers.com"]
7
- spec.description = "Quickly deploy config files (e.g. YMLs) to all EngineYard servers"
7
+ spec.description = "Quickly copy files (e.g. YMLs or configuration files) to multiple EngineYard servers"
8
8
  spec.summary = File.open('README.md').read
9
9
  spec.homepage = "http://github.com/roadtrippers/ey-scp"
10
10
  spec.license = "MIT"
metadata CHANGED
@@ -1,86 +1,87 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ey-scp
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Steven Dunlap
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2013-10-04 00:00:00.000000000 Z
11
+ date: 2014-03-14 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
- - - "~>"
17
+ - - ~>
18
18
  - !ruby/object:Gem::Version
19
19
  version: '1.3'
20
20
  type: :development
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
- - - "~>"
24
+ - - ~>
25
25
  - !ruby/object:Gem::Version
26
26
  version: '1.3'
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: rake
29
29
  requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
- - - ">="
31
+ - - '>='
32
32
  - !ruby/object:Gem::Version
33
33
  version: '0'
34
34
  type: :development
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
- - - ">="
38
+ - - '>='
39
39
  - !ruby/object:Gem::Version
40
40
  version: '0'
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: json
43
43
  requirement: !ruby/object:Gem::Requirement
44
44
  requirements:
45
- - - "~>"
45
+ - - ~>
46
46
  - !ruby/object:Gem::Version
47
47
  version: '1.8'
48
48
  type: :runtime
49
49
  prerelease: false
50
50
  version_requirements: !ruby/object:Gem::Requirement
51
51
  requirements:
52
- - - "~>"
52
+ - - ~>
53
53
  - !ruby/object:Gem::Version
54
54
  version: '1.8'
55
55
  - !ruby/object:Gem::Dependency
56
56
  name: net-scp
57
57
  requirement: !ruby/object:Gem::Requirement
58
58
  requirements:
59
- - - "~>"
59
+ - - ~>
60
60
  - !ruby/object:Gem::Version
61
61
  version: '1.1'
62
62
  type: :runtime
63
63
  prerelease: false
64
64
  version_requirements: !ruby/object:Gem::Requirement
65
65
  requirements:
66
- - - "~>"
66
+ - - ~>
67
67
  - !ruby/object:Gem::Version
68
68
  version: '1.1'
69
69
  - !ruby/object:Gem::Dependency
70
70
  name: faraday
71
71
  requirement: !ruby/object:Gem::Requirement
72
72
  requirements:
73
- - - "~>"
73
+ - - ~>
74
74
  - !ruby/object:Gem::Version
75
75
  version: '0.8'
76
76
  type: :runtime
77
77
  prerelease: false
78
78
  version_requirements: !ruby/object:Gem::Requirement
79
79
  requirements:
80
- - - "~>"
80
+ - - ~>
81
81
  - !ruby/object:Gem::Version
82
82
  version: '0.8'
83
- description: Quickly deploy config files (e.g. YMLs) to all EngineYard servers
83
+ description: Quickly copy files (e.g. YMLs or configuration files) to multiple EngineYard
84
+ servers
84
85
  email:
85
86
  - steven@roadtrippers.com
86
87
  executables:
@@ -88,10 +89,9 @@ executables:
88
89
  extensions: []
89
90
  extra_rdoc_files: []
90
91
  files:
91
- - ".gitignore"
92
+ - .gitignore
92
93
  - Gemfile
93
94
  - LICENSE
94
- - LICENSE.txt
95
95
  - README.md
96
96
  - Rakefile
97
97
  - bin/ey-scp
@@ -106,28 +106,31 @@ require_paths:
106
106
  - lib
107
107
  required_ruby_version: !ruby/object:Gem::Requirement
108
108
  requirements:
109
- - - ">="
109
+ - - '>='
110
110
  - !ruby/object:Gem::Version
111
111
  version: '0'
112
112
  required_rubygems_version: !ruby/object:Gem::Requirement
113
113
  requirements:
114
- - - ">="
114
+ - - '>='
115
115
  - !ruby/object:Gem::Version
116
116
  version: '0'
117
117
  requirements: []
118
118
  rubyforge_project:
119
- rubygems_version: 2.1.5
119
+ rubygems_version: 2.1.11
120
120
  signing_key:
121
121
  specification_version: 4
122
- summary: "# ey-scp Rubygem to quickly and painlessly deploy configuration files to
123
- multiple instances on EngineYard ## Installation 1. Run $ gem install ey-scp
124
- \ 2. Make sure that you [have your public key registered with EY](https//support.cloud.engineyard.com/entries/21016528-Add-an-SSH-Key).
125
- \ ## Usage 1. Run ey login from your project directory. 2. Use the ```ey-scp```
126
- from any directory with the following syntax: ey-scp -e ENVIRONMENT [OPTIONS] LOCAL_SOURCE_FILE
122
+ summary: '# ey-scp Provides a CLI to quickly and painlessly deploy configuration
123
+ files to multiple instances on EngineYard ## Installation 1. Run $ gem install
124
+ ey-scp 2. Make sure that you [have your public key registered with EY](https//support.cloud.engineyard.com/entries/21016528-Add-an-SSH-Key). ##
125
+ Usage 1. Run ey login from your project directory. 2. Use ```ey-scp``` from
126
+ any directory with the following syntax: ey-scp -e ENVIRONMENT [OPTIONS] LOCAL_SOURCE_FILE
127
127
  REMOTE_DESTINATION e.g. ey-scp -e production --app-servers ~/local/project/config/foo.yml
128
- /remote/project/path/config ## Contributing Right now, we could really use someone
129
- to refactor the code so that it's less scripty/hackish. 1. Fork it 2. Create your
130
- feature branch (`git checkout -b my-new-feature`) 3. Commit your changes (`git commit
131
- -am 'Add some feature'`) 4. Push to the branch (`git push origin my-new-feature`)
132
- 5. Create new Pull Request"
128
+ /remote/project/path/config ### Specifying target instances Option | Uploads to
129
+ instances with roles of ------ | ---------------------------------- --app-servers
130
+ | solo, app_master, app --app-master | solo, app_master --db-servers | solo, db_master,
131
+ db_slave --db-master | solo, db_master --db-slaves | solo, db_slave ## Contributing Right
132
+ now, we could really use someone to refactor the code so that it''s less scripty/hackish. 1.
133
+ Fork it 2. Create your feature branch (`git checkout -b my-new-feature`) 3. Commit
134
+ your changes (`git commit -am ''Add some feature''`) 4. Push to the branch (`git
135
+ push origin my-new-feature`) 5. Create new Pull Request'
133
136
  test_files: []
@@ -1,22 +0,0 @@
1
- Copyright (c) 2013 Steven Dunlap
2
-
3
- MIT License
4
-
5
- Permission is hereby granted, free of charge, to any person obtaining
6
- a copy of this software and associated documentation files (the
7
- "Software"), to deal in the Software without restriction, including
8
- without limitation the rights to use, copy, modify, merge, publish,
9
- distribute, sublicense, and/or sell copies of the Software, and to
10
- permit persons to whom the Software is furnished to do so, subject to
11
- the following conditions:
12
-
13
- The above copyright notice and this permission notice shall be
14
- included in all copies or substantial portions of the Software.
15
-
16
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
17
- EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
18
- MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
19
- NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
20
- LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
21
- OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
22
- WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.