opsworks 0.0.6 → 0.0.7

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: ef73d0b4d5dac0da741f5f5296fa2ce7ca2028fc
4
- data.tar.gz: 5280aebad0267fa417cf60cf5167683097781fd2
3
+ metadata.gz: fc27c19ed3ac8d82d245548f99199796cbca2a95
4
+ data.tar.gz: 626b337cdc0a6bfb878debf656199f582d352357
5
5
  SHA512:
6
- metadata.gz: 09b5ad2fe4180a9c73f7a6efd7fab1c9e3aeed52cb795d66bd1d8e2d96c368a631069e97f0d036702c05192e6e9971d6df2a7c0ea84cfd58f9ee404970fedd9c
7
- data.tar.gz: 80fa1c5bf5ca748e4c99bce375a2ac1ce792221529638a508e3d32adcc27e3b86b86121a18502fa667f9803e8f9002756f6caf25c4f9e0ccb56dcc5f175c0cf7
6
+ metadata.gz: 1df9a1d6d47d42f4f8f01952d3e7de9d779bb8feb99bd9cf7efdb9894ab9e1d4edf96651916c62f0d57812f84deb1cc03084b84cc36230c5a335d597c678eb5c
7
+ data.tar.gz: c8c5fc40899665fd5648a2da1c9b0448a6e8f0e04bb8a3e86af2322434a0d2dc03e23897b126fb620ba2a9fb2d2dd60313a6cf51ebaa4358a5ba6bcddb35e503
data/README.md CHANGED
@@ -1,4 +1,4 @@
1
- # Opsworks
1
+ # OpsWorks CLI
2
2
 
3
3
  Command line interface for Amazon OpsWorks.
4
4
 
@@ -1,5 +1,9 @@
1
1
  #!/usr/bin/env ruby
2
2
 
3
+ require "pathname"
4
+ bin_file = Pathname.new(__FILE__).realpath
5
+ $:.unshift File.expand_path("../../lib", bin_file)
6
+
3
7
  require 'opsworks/cli'
4
8
 
5
9
  OpsWorks::CLI.start
@@ -1,4 +1,4 @@
1
- require "opsworks/version"
1
+ require "opsworks/meta"
2
2
  require "opsworks/config"
3
3
  require "opsworks/commands/ssh"
4
4
 
@@ -8,5 +8,6 @@ class String
8
8
  end
9
9
  end
10
10
 
11
- module Opsworks
11
+ module OpsWorks
12
12
  end
13
+
@@ -3,19 +3,15 @@ require 'opsworks'
3
3
 
4
4
  class OpsWorks::CLI
5
5
  def self.start
6
- spec = Gem::Specification::load(File.expand_path(
7
- "../../../opsworks.gemspec",
8
- Pathname.new(__FILE__).realpath,
9
- ))
10
-
11
6
  commands = %w(ssh)
12
7
 
13
8
  global_opts = Trollop::options do
14
- version "opsworks #{spec.version} (c) #{spec.authors.join(", ")}"
9
+ version "opsworks #{OpsWorks::VERSION} " <<
10
+ "(c) #{OpsWorks::AUTHORS.join(", ")}"
15
11
  banner <<-EOS.unindent
16
12
  usage: opsworks [COMMAND] [OPTIONS...]
17
13
 
18
- #{spec.summary}
14
+ #{OpsWorks::SUMMARY}
19
15
 
20
16
  Commands
21
17
  ssh #{OpsWorks::Commands::SSH.banner}
@@ -0,0 +1,7 @@
1
+ module OpsWorks
2
+ VERSION = "0.0.7"
3
+ AUTHORS = ["Adam Lindberg"]
4
+ EMAIL = ["hello@alind.io"]
5
+ DESCRIPTION = "Amazon OpsWorks CLI"
6
+ SUMMARY = "Command line interface for Amazon OpsWorks"
7
+ end
@@ -1,23 +1,25 @@
1
1
  # coding: utf-8
2
- lib = File.expand_path('../lib', __FILE__)
2
+
3
+ root = File.expand_path('..', __FILE__)
4
+ lib = File.expand_path('lib', root)
3
5
  $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
4
- require 'opsworks/version'
6
+ require 'opsworks/meta'
5
7
 
6
8
  Gem::Specification.new do |spec|
7
9
  spec.name = "opsworks"
8
- spec.version = Opsworks::VERSION
9
- spec.authors = ["Adam Lindberg"]
10
- spec.email = ["hello@alind.io"]
11
- spec.description = %q{Amazon OpsWorks CLI}
12
- spec.summary = %q{Command line interface for Amazon OpsWorks}
10
+ spec.version = OpsWorks::VERSION
11
+ spec.authors = OpsWorks::AUTHORS
12
+ spec.email = OpsWorks::EMAIL
13
+ spec.description = OpsWorks::DESCRIPTION
14
+ spec.summary = OpsWorks::SUMMARY
13
15
  spec.homepage = "https://github.com/eproxus/opsworks"
14
16
  spec.license = "MIT"
15
17
 
16
18
  ignores = File.readlines('.gitignore').grep(/\S+/).map { |s| s.chomp }
17
- dotfiles = ['.gitignore']
18
- spec.files = (Dir["**/*"].reject do |f|
19
+ spec.files = Dir["**/*"].reject do |f|
19
20
  File.directory?(f) || ignores.any? { |i| File.fnmatch(i, f) }
20
- end + dotfiles)
21
+ end
22
+ spec.files += ['.gitignore']
21
23
 
22
24
  spec.executables = spec.files.grep(%r{^bin/}) { |f| File.basename(f) }
23
25
  spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: opsworks
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.6
4
+ version: 0.0.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - Adam Lindberg
@@ -107,7 +107,7 @@ files:
107
107
  - lib/opsworks/cli.rb
108
108
  - lib/opsworks/commands/ssh.rb
109
109
  - lib/opsworks/config.rb
110
- - lib/opsworks/version.rb
110
+ - lib/opsworks/meta.rb
111
111
  - lib/opsworks.rb
112
112
  - LICENSE.txt
113
113
  - opsworks.gemspec
@@ -1,3 +0,0 @@
1
- module Opsworks
2
- VERSION = "0.0.6"
3
- end