g5deploy 0.0.3 → 0.0.4
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/README.md +18 -19
- data/lib/g5deploy/cli.rb +6 -0
- data/lib/g5deploy/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 05220b53a8b9e5393cdf19969938f4f4a3b8143a
|
4
|
+
data.tar.gz: fbb29d3a97e106ac7651377e4e8a23e27bcf556e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3dc5187192ea70ce3433375c68953e8c2863519589d264aabfdf41e4828718577c41e4ef26cb56bef38c48d694b6e339b00f1cf71b8ca7c695bfa6a2b1d9dca0
|
7
|
+
data.tar.gz: d173cf23ebd3bdf542810c2337d51c8561db4b82b5cfc38bc3a54b368d1e774345189b96639d6a2db196183bae2f28e16bb9f5a1e5ce088c697bab803427ae4d
|
data/README.md
CHANGED
@@ -1,34 +1,33 @@
|
|
1
1
|
# G5deploy
|
2
2
|
|
3
|
-
|
4
|
-
|
5
|
-
TODO: Delete this and the text above, and describe your gem
|
3
|
+
Utility commands for using kubernetes in g5 projects
|
6
4
|
|
7
5
|
## Installation
|
8
6
|
|
9
|
-
|
7
|
+
Install `g5deploy` on your host machine so you can use it on any g5 projects
|
10
8
|
|
11
|
-
```
|
12
|
-
gem
|
9
|
+
```bash
|
10
|
+
gem install g5deploy
|
13
11
|
```
|
14
12
|
|
15
|
-
And then execute:
|
16
|
-
|
17
|
-
$ bundle
|
18
|
-
|
19
|
-
Or install it yourself as:
|
20
|
-
|
21
|
-
$ gem install g5deploy
|
22
|
-
|
23
13
|
## Usage
|
24
14
|
|
25
|
-
|
26
|
-
|
27
|
-
## Development
|
15
|
+
Current features are only `deploy` and `pods`.
|
28
16
|
|
29
|
-
|
17
|
+
- For deploying in staging and production you can use:
|
18
|
+
```bash
|
19
|
+
g5deploy deploy <environment>
|
20
|
+
g5deploy deploy production
|
21
|
+
g5deploy deploy migration
|
22
|
+
g5deploy deploy production --with_migration
|
23
|
+
```
|
30
24
|
|
31
|
-
|
25
|
+
- You can also check current pods:
|
26
|
+
```bash
|
27
|
+
g5deploy pods <environment>
|
28
|
+
g5pods pods production
|
29
|
+
g5pods pods migration
|
30
|
+
```
|
32
31
|
|
33
32
|
## Contributing
|
34
33
|
|
data/lib/g5deploy/cli.rb
CHANGED
@@ -42,6 +42,12 @@ module G5deploy
|
|
42
42
|
end
|
43
43
|
end
|
44
44
|
|
45
|
+
desc "logs <pod_name>", "pods integrations-rails-servers-1905410877-5zfej"
|
46
|
+
def logs(pod_name)
|
47
|
+
cmd = "kubectl exec -it #{pod_name} -- /bin/bash -f"
|
48
|
+
run_command(cmd)
|
49
|
+
end
|
50
|
+
|
45
51
|
private
|
46
52
|
|
47
53
|
def run_command(cmd)
|
data/lib/g5deploy/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: g5deploy
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Arman Jon Villalobos
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-
|
11
|
+
date: 2016-10-05 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: thor
|