yu 0.1.9 → 0.2.0
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/lib/yu.rb +3 -1
- data/lib/yu/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 1b189c98f12f9035bd0fbe317210f22d5c562ff4
|
|
4
|
+
data.tar.gz: b5b69d86bfb0b36ee1eaa8110cdbee9f4bf8852c
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 7c1efc70201249795d7a9390ce8924814e82d2d8352443f3965f01ad2cf6b0f20d21e24a15f27080282c3d3e3e05722ad46843efa5712fc060d10057795440cf
|
|
7
|
+
data.tar.gz: 261d5375109af5dde42f0c730acda0eea3b257cd616f4741fb4449d9c7152b34225e1d79696573ffa383d7255049b94f296efbded9df64fbecda4f98300b417e
|
data/lib/yu.rb
CHANGED
|
@@ -77,6 +77,7 @@ module Yu
|
|
|
77
77
|
command :run do |c|
|
|
78
78
|
c.syntax = 'yu run'
|
|
79
79
|
c.description = 'Create a temp container to run a command'
|
|
80
|
+
c.option '--test'
|
|
80
81
|
c.action(method(:run))
|
|
81
82
|
end
|
|
82
83
|
|
|
@@ -186,7 +187,8 @@ module Yu
|
|
|
186
187
|
|
|
187
188
|
def run(args, options)
|
|
188
189
|
command = args.join(" ")
|
|
189
|
-
|
|
190
|
+
env_option = options.test ? "-e APP_ENV=test" : ""
|
|
191
|
+
execute_command "docker-compose run --rm #{env_option} #{command}"
|
|
190
192
|
end
|
|
191
193
|
|
|
192
194
|
def service(args, options)
|
data/lib/yu/version.rb
CHANGED