on_container 0.0.12 → 0.0.13
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/on_container/dev/rails_ops.rb +6 -2
- data/lib/on_container/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 666ea07dfb60a918f47d2eedad555afbe2324d6ddffb4c6cb35daf13e703a1f6
|
4
|
+
data.tar.gz: 308df21b88f61bdddbc6d0459378ae8d268cc799bf554be3284e1c8b646fd5dd
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7e446514b49eb072b58f16fa2a91c6fed017ef7b0712a41b36d5504c56649372814fd08f88e8948873cd8c462c831b3f02ac32837f4333cd5da5d93fb94ed5bd
|
7
|
+
data.tar.gz: '068422169d75c3a008847deb728f43694d5e40dc9c697d287b5f0e9dc3c7367ca0c88649f011a175df0e810f13d4f7765e129d3d995d36d9e6b9fe1219a5267b'
|
@@ -6,10 +6,14 @@ module OnContainer
|
|
6
6
|
def remove_rails_pidfile
|
7
7
|
system "rm -rf #{File.expand_path('tmp/pids/server.pid')}"
|
8
8
|
end
|
9
|
+
|
10
|
+
def rails?
|
11
|
+
ARGV[0] == 'rails'
|
12
|
+
end
|
9
13
|
|
10
14
|
def rails_server?
|
11
|
-
|
15
|
+
rails? && %w[server s].include?(ARGV[1])
|
12
16
|
end
|
13
17
|
end
|
14
18
|
end
|
15
|
-
end
|
19
|
+
end
|
data/lib/on_container/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: on_container
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.13
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Roberto Quintanilla
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2021-
|
11
|
+
date: 2021-03-05 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activesupport
|