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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: af31f2c38d490dcdfd504ce812566381f4fd3563
4
- data.tar.gz: c886eb9a37558a499634619a51a4448ab104b8f0
3
+ metadata.gz: 05220b53a8b9e5393cdf19969938f4f4a3b8143a
4
+ data.tar.gz: fbb29d3a97e106ac7651377e4e8a23e27bcf556e
5
5
  SHA512:
6
- metadata.gz: 4d8e3e89f8985057418879b5d034d4450c9d5e99d52f299a0e7ed8b1cc5321703f5a1b52aeb85104adf938ead9d234aa01ffee728a86e5f91f31a949d6ba1b81
7
- data.tar.gz: 9ffb504003376fbbda827112b2d2972e5435149e8464ce56b734110955d4bb20aefda5dafc81ec1ee829c992b38d1d335ee18a9a59322d835c73e7b1430083bf
6
+ metadata.gz: 3dc5187192ea70ce3433375c68953e8c2863519589d264aabfdf41e4828718577c41e4ef26cb56bef38c48d694b6e339b00f1cf71b8ca7c695bfa6a2b1d9dca0
7
+ data.tar.gz: d173cf23ebd3bdf542810c2337d51c8561db4b82b5cfc38bc3a54b368d1e774345189b96639d6a2db196183bae2f28e16bb9f5a1e5ce088c697bab803427ae4d
data/README.md CHANGED
@@ -1,34 +1,33 @@
1
1
  # G5deploy
2
2
 
3
- Welcome to your new gem! In this directory, you'll find the files you need to be able to package up your Ruby library into a gem. Put your Ruby code in the file `lib/g5deploy`. To experiment with that code, run `bin/console` for an interactive prompt.
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
- Add this line to your application's Gemfile:
7
+ Install `g5deploy` on your host machine so you can use it on any g5 projects
10
8
 
11
- ```ruby
12
- gem 'g5deploy'
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
- TODO: Write usage instructions here
26
-
27
- ## Development
15
+ Current features are only `deploy` and `pods`.
28
16
 
29
- After checking out the repo, run `bin/setup` to install dependencies. Then, run `rake spec` to run the tests. You can also run `bin/console` for an interactive prompt that will allow you to experiment.
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
- To install this gem onto your local machine, run `bundle exec rake install`. To release a new version, update the version number in `version.rb`, and then run `bundle exec rake release`, which will create a git tag for the version, push git commits and tags, and push the `.gem` file to [rubygems.org](https://rubygems.org).
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)
@@ -1,3 +1,3 @@
1
1
  module G5deploy
2
- VERSION = "0.0.3"
2
+ VERSION = "0.0.4"
3
3
  end
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.3
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-09-19 00:00:00.000000000 Z
11
+ date: 2016-10-05 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: thor