ebfly 0.0.4 → 0.0.5

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: 4cfff435a2fc66feadcb14164590fa7c48e3211b
4
- data.tar.gz: 5f62706db5edaa8f3d542e16323d3a37c421fae1
3
+ metadata.gz: 65180cd82ab025f34cd205e957b75b8db0790dcc
4
+ data.tar.gz: b34c5207a667319b62bb8c814203f7c4ce2a8b69
5
5
  SHA512:
6
- metadata.gz: 2993cb3493850c44b2272d577acfddeca3d81f467c812972fdb94d98a6ee8386059248d416c9d3223f4b2bc004facce44f13e72c120fc93606eb8ba44a54cd1f
7
- data.tar.gz: 5f8d15e40b52fc3b47f4879fef026b8f314b931be77a5b20ced2897a8073b332ff2cac61d27a0335e8791accb3af36c26c0bebc23e4a256e6564b57f60af04c4
6
+ metadata.gz: e4801c263d6468167d412bdd3bf93067ee6f6162adb18bbe5c8b3065e16c00841597a73b2c174e8170f423593f370e149435980cb45ec3f43bb73e69274a41f1
7
+ data.tar.gz: f997cb39446463da283bca229c4f0e1a0e0cc82ca329013af81b461e8b356bd05c00715b2d11f37cd3b2592ddea63f9d69248a53f429e8bdf600a24894650b52
data/ebfly.gemspec CHANGED
@@ -10,7 +10,7 @@ Gem::Specification.new do |spec|
10
10
  spec.email = ["hakobera@gmail.com"]
11
11
  spec.summary = %q{Simple command line interface for AWS ElasticBeanstalk}
12
12
  spec.description = %q{Simple command line interface for AWS ElasticBeanstalk}
13
- spec.homepage = "https://github.com/hakobera/ebifly"
13
+ spec.homepage = "https://github.com/hakobera/ebfly"
14
14
  spec.license = "Apache License, Version 2.0"
15
15
 
16
16
  spec.files = `git ls-files -z`.split("\x0")
data/lib/ebfly/ebfly.rb CHANGED
@@ -50,7 +50,14 @@ module Ebfly
50
50
  end
51
51
 
52
52
  def exist_command?(cmd)
53
- Open3.capture3("type", cmd)[2].exitstatus == 0 rescue nil
53
+ exts = ENV['PATHEXT'] ? ENV['PATHEXT'].split(';') : ['']
54
+ ENV['PATH'].split(File::PATH_SEPARATOR).each do |path|
55
+ exts.each { |ext|
56
+ exe = File.join(path, "#{cmd}#{ext}")
57
+ return exe if File.executable? exe
58
+ }
59
+ end
60
+ return nil
54
61
  end
55
62
 
56
63
  def env_name(app, env)
data/lib/ebfly/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Ebfly
2
- VERSION = "0.0.4"
2
+ VERSION = "0.0.5"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ebfly
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.4
4
+ version: 0.0.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Kazuyuki Honda
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-02-27 00:00:00.000000000 Z
11
+ date: 2014-03-07 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: aws-sdk
@@ -62,7 +62,7 @@ files:
62
62
  - lib/ebfly/ebfly.rb
63
63
  - lib/ebfly/options.rb
64
64
  - lib/ebfly/version.rb
65
- homepage: https://github.com/hakobera/ebifly
65
+ homepage: https://github.com/hakobera/ebfly
66
66
  licenses:
67
67
  - Apache License, Version 2.0
68
68
  metadata: {}