contexto 0.3.0 → 0.3.1

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: '01823bca9a67dc14286c25741fee3192d366192d'
4
- data.tar.gz: feee83295be858f3fadd916b9dfa04e1bc220032
3
+ metadata.gz: ce4c997a2e9820433e6dc16ac7c257ec27ec32ce
4
+ data.tar.gz: aac1141f316a5d6406be6f2b423f90a49fb25b78
5
5
  SHA512:
6
- metadata.gz: 3c9aecc424407b74ba9dd636f4ae4e022f2a2ef9cd09872d3e0602d4550088e6b901e1666c393ab84f28d3f50efbae8f0e6b5419dd9df19757c227d88e6ab6c0
7
- data.tar.gz: 3e303e464d36bbc0493ccda38c8dbe6f4ac7a616622194fea40e2941702e5dd115b9a3302aed6a813fb143d7ff4f41f1a9ecff8d6800cf8847d02e334572c7e4
6
+ metadata.gz: eab75f11605d88c06fd809861fd5b292a920c92c4c26fb2569b5f7136a8551dfb43c79f3c568d37e255c6726e61ef0f7ca1a3b8b1bec2e3671b6cd0db1e246f2
7
+ data.tar.gz: 4fb2fe0b173734ad9cf4eebf319907a75556a7813c077be4b9627ce451abee0a438d37ee69d434c3aa96c0d0d13c395a16446a0833d6f47b880147f47d9d315d
data/README.md CHANGED
@@ -68,14 +68,14 @@ Containers
68
68
 
69
69
  ### SSH
70
70
 
71
- You can also get Contexto to connect via SSH to a Bash shell, Rails console or run a `rake` task.
71
+ You can also get Contexto to connect via SSH to a Bash shell, or a Rails console.
72
72
 
73
73
  #### Bash shell on container
74
74
 
75
- To connect to a Bash shell in a specific container, specify the cluster, service and container and the `--bash` flag.
75
+ To connect to a Bash shell in a specific container, specify the cluster, service and container and the `--type` flag.
76
76
 
77
77
  ```shell
78
- $ contexto -c sandbox -s backend-app -t app --bash
78
+ $ contexto -c sandbox -s backend-app -v app -t=bash
79
79
 
80
80
  ** Contexto Contextualizes **
81
81
  ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
@@ -84,10 +84,10 @@ circleci@4e65666c9414:/usr/src/app$
84
84
 
85
85
  #### Rails console
86
86
 
87
- To connect to a Rails console, specify the cluster, service and container and the `--console` flag.
87
+ To connect to a Rails console, specify the cluster, service and container and the `--type` flag.
88
88
 
89
89
  ```shell
90
- $ contexto -c sandbox -s backend-app -t app --console
90
+ $ contexto -c sandbox -s backend-app -v app --type=console
91
91
 
92
92
  ** Contexto Contextualizes **
93
93
  ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
@@ -97,30 +97,12 @@ Loading sandbox environment (Rails 5.0.1)
97
97
  irb(main):001:0>
98
98
  ```
99
99
 
100
- #### Rake tasks
101
-
102
- You can run `rake` tasks. To run the `test` task you would do:
103
-
104
- ```shell
105
- $ contexto -c sandbox -s backend-app -t sidekiq --rake test
106
-
107
-
108
- ** Contexto Contextualizes **
109
- ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
110
-
111
- Run options: --seed 52808
112
-
113
- # Running:
114
-
115
- ................................................E
116
- ```
117
-
118
100
  #### Shell on Docker host
119
101
 
120
- You can get an SSH shell on the Docker host too using the `--ssh` task.
102
+ You can get an SSH shell on the Docker host too using the `--type` task.
121
103
 
122
104
  ```shell
123
- $ contexto -c sandbox -s backend-app -t sidekiq --ssh
105
+ $ contexto -c sandbox -s backend-app -v sidekiq --t=ssh
124
106
 
125
107
  ** Contexto Contextualizes **
126
108
  ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
@@ -145,7 +127,7 @@ To install this gem onto your local machine, run `bundle exec rake install`. To
145
127
 
146
128
  ## Contributing
147
129
 
148
- Bug reports and pull requests are welcome on GitHub at https://github.com/jamtur01/contexto. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [Contributor Covenant](http://contributor-covenant.org) code of conduct.
130
+ Bug reports and pull requests are welcome on GitHub at https://github.com/EmpaticoOrg/contexto. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [Contributor Covenant](http://contributor-covenant.org) code of conduct.
149
131
 
150
132
  ## License
151
133
 
@@ -44,7 +44,7 @@ module Contexto
44
44
  return
45
45
  elsif container
46
46
  puts "\n"
47
- show_tasks(container)
47
+ show_tasks
48
48
  end
49
49
  end
50
50
 
@@ -114,10 +114,10 @@ module Contexto
114
114
  puts 'Service not found'
115
115
  end
116
116
 
117
- def show_tasks(container = '')
117
+ def show_tasks
118
118
  task = describe_tasks
119
119
  if container
120
- containers = task[:containers].select { |c| container == c[:name] }
120
+ containers = task[:containers].select { |c| c[:name] == container }
121
121
  else
122
122
  containers = task[:containers]
123
123
  end
@@ -1,4 +1,4 @@
1
1
  # Contexto version
2
2
  module Contexto
3
- VERSION = '0.3.0'.freeze
3
+ VERSION = '0.3.1'.freeze
4
4
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: contexto
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.0
4
+ version: 0.3.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - James Turnbull
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-03-06 00:00:00.000000000 Z
11
+ date: 2018-03-07 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: aws-sdk