contexto 0.3.0 → 0.3.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +8 -26
- data/lib/contexto/contextualize.rb +3 -3
- data/lib/contexto/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: ce4c997a2e9820433e6dc16ac7c257ec27ec32ce
|
4
|
+
data.tar.gz: aac1141f316a5d6406be6f2b423f90a49fb25b78
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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,
|
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 `--
|
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 -
|
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 `--
|
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 -
|
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 `--
|
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 -
|
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/
|
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
|
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
|
117
|
+
def show_tasks
|
118
118
|
task = describe_tasks
|
119
119
|
if container
|
120
|
-
containers = task[:containers].select { |c|
|
120
|
+
containers = task[:containers].select { |c| c[:name] == container }
|
121
121
|
else
|
122
122
|
containers = task[:containers]
|
123
123
|
end
|
data/lib/contexto/version.rb
CHANGED
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.
|
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-
|
11
|
+
date: 2018-03-07 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: aws-sdk
|