admiral 0.0.1
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.
- data/.gitignore +18 -0
- data/.ruby-version +1 -0
- data/Gemfile +4 -0
- data/LICENSE.txt +22 -0
- data/README.md +30 -0
- data/Rakefile +1 -0
- data/admiral.gemspec +23 -0
- data/bin/admiral +12 -0
- data/lib/admiral.rb +1 -0
- data/lib/admiral/base.rb +14 -0
- data/lib/admiral/cli.rb +6 -0
- data/spec/test.json +3 -0
- data/spec/test.template +1 -0
- metadata +110 -0
data/.gitignore
ADDED
data/.ruby-version
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
1.9.3-p547
|
data/Gemfile
ADDED
data/LICENSE.txt
ADDED
@@ -0,0 +1,22 @@
|
|
1
|
+
Copyright (c) 2015 Peter T. Brown
|
2
|
+
|
3
|
+
MIT License
|
4
|
+
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining
|
6
|
+
a copy of this software and associated documentation files (the
|
7
|
+
"Software"), to deal in the Software without restriction, including
|
8
|
+
without limitation the rights to use, copy, modify, merge, publish,
|
9
|
+
distribute, sublicense, and/or sell copies of the Software, and to
|
10
|
+
permit persons to whom the Software is furnished to do so, subject to
|
11
|
+
the following conditions:
|
12
|
+
|
13
|
+
The above copyright notice and this permission notice shall be
|
14
|
+
included in all copies or substantial portions of the Software.
|
15
|
+
|
16
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
17
|
+
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
18
|
+
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
|
19
|
+
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
|
20
|
+
LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
|
21
|
+
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
|
22
|
+
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
data/README.md
ADDED
@@ -0,0 +1,30 @@
|
|
1
|
+
# Admiral
|
2
|
+
|
3
|
+
Admiral is a command line utility for managing AWS CloudFormation and OpsWorks stacks, and for deploying applications to EC2 instances. Admiral is modular in design -- you include just the modules you need, dependencies are automatically resolved.
|
4
|
+
|
5
|
+
## Installation
|
6
|
+
|
7
|
+
Currently there are four Admiral modules. Simply install what you need to get started.
|
8
|
+
|
9
|
+
* [admiral](https://github.com/flippyhead/admiral): the core command line utility and binary.
|
10
|
+
* [admiral-cloudformation](https://github.com/flippyhead/admiral-cloudformation): tasks for managing AWS CloudFormation templates by environment.
|
11
|
+
* [admiral-opsworks](https://github.com/flippyhead/admiral-opsworks): tasks for managing AWS OpsWorks stacks and instances.
|
12
|
+
* [admiral-meteor](https://github.com/flippyhead/admiral-meteor) : tasks for building and deploying Meteor applications.
|
13
|
+
|
14
|
+
Please visit the above repositories for details on each module.
|
15
|
+
|
16
|
+
## Usage
|
17
|
+
|
18
|
+
Install one of the above modules then from your command line:
|
19
|
+
|
20
|
+
$ admiral help
|
21
|
+
|
22
|
+
To see a list of available module subcommands and options.
|
23
|
+
|
24
|
+
## Contributing
|
25
|
+
|
26
|
+
1. Fork it
|
27
|
+
2. Create your feature branch (`git checkout -b my-new-feature`)
|
28
|
+
3. Commit your changes (`git commit -am 'Add some feature'`)
|
29
|
+
4. Push to the branch (`git push origin my-new-feature`)
|
30
|
+
5. Create new Pull Request
|
data/Rakefile
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
require "bundler/gem_tasks"
|
data/admiral.gemspec
ADDED
@@ -0,0 +1,23 @@
|
|
1
|
+
# coding: utf-8
|
2
|
+
lib = File.expand_path('../lib', __FILE__)
|
3
|
+
|
4
|
+
Gem::Specification.new do |spec|
|
5
|
+
spec.name = "admiral"
|
6
|
+
spec.version = '0.0.1'
|
7
|
+
spec.authors = ["Peter T. Brown"]
|
8
|
+
spec.email = ["p@ptb.io"]
|
9
|
+
spec.description = %q{A command line tool for wielding cloudformation templates.}
|
10
|
+
spec.summary = %q{A command line tool for wielding cloudformation templates.}
|
11
|
+
spec.homepage = "https://github.com/flippyhead/admiral"
|
12
|
+
spec.license = "MIT"
|
13
|
+
|
14
|
+
spec.files = `git ls-files`.split($/)
|
15
|
+
spec.executables = spec.files.grep(%r{^bin/}) { |f| File.basename(f) }
|
16
|
+
spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
|
17
|
+
spec.require_paths = ["lib"]
|
18
|
+
|
19
|
+
spec.add_development_dependency "bundler", "~> 1.3"
|
20
|
+
spec.add_development_dependency "rake"
|
21
|
+
spec.add_dependency 'thor', '~> 0.19'
|
22
|
+
|
23
|
+
end
|
data/bin/admiral
ADDED
@@ -0,0 +1,12 @@
|
|
1
|
+
#!/usr/bin/env ruby
|
2
|
+
|
3
|
+
Bundler.require
|
4
|
+
|
5
|
+
require 'admiral/cli'
|
6
|
+
|
7
|
+
Admiral::Tasks.constants.each do |const|
|
8
|
+
tasks = Admiral::Tasks.const_get const
|
9
|
+
Admiral::Cli.register tasks, tasks::NAME, tasks::USAGE, tasks::DESCRIPTION
|
10
|
+
end
|
11
|
+
|
12
|
+
Admiral::Cli.start(ARGV)
|
data/lib/admiral.rb
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
require "admiral/version"
|
data/lib/admiral/base.rb
ADDED
@@ -0,0 +1,14 @@
|
|
1
|
+
module Admiral
|
2
|
+
module Base
|
3
|
+
def self.extended(thor)
|
4
|
+
thor.class_eval do
|
5
|
+
|
6
|
+
class_option :environment,
|
7
|
+
desc: 'The environment (e.g. staging or production). Can also be specified with ADMIRAL_ENV.',
|
8
|
+
default: ENV['ADMIRAL_ENV'] || 'production',
|
9
|
+
aliases: '--env'
|
10
|
+
|
11
|
+
end
|
12
|
+
end
|
13
|
+
end
|
14
|
+
end
|
data/lib/admiral/cli.rb
ADDED
data/spec/test.json
ADDED
data/spec/test.template
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
{}
|
metadata
ADDED
@@ -0,0 +1,110 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: admiral
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.0.1
|
5
|
+
prerelease:
|
6
|
+
platform: ruby
|
7
|
+
authors:
|
8
|
+
- Peter T. Brown
|
9
|
+
autorequire:
|
10
|
+
bindir: bin
|
11
|
+
cert_chain: []
|
12
|
+
date: 2015-05-03 00:00:00.000000000 Z
|
13
|
+
dependencies:
|
14
|
+
- !ruby/object:Gem::Dependency
|
15
|
+
name: bundler
|
16
|
+
requirement: !ruby/object:Gem::Requirement
|
17
|
+
none: false
|
18
|
+
requirements:
|
19
|
+
- - ~>
|
20
|
+
- !ruby/object:Gem::Version
|
21
|
+
version: '1.3'
|
22
|
+
type: :development
|
23
|
+
prerelease: false
|
24
|
+
version_requirements: !ruby/object:Gem::Requirement
|
25
|
+
none: false
|
26
|
+
requirements:
|
27
|
+
- - ~>
|
28
|
+
- !ruby/object:Gem::Version
|
29
|
+
version: '1.3'
|
30
|
+
- !ruby/object:Gem::Dependency
|
31
|
+
name: rake
|
32
|
+
requirement: !ruby/object:Gem::Requirement
|
33
|
+
none: false
|
34
|
+
requirements:
|
35
|
+
- - ! '>='
|
36
|
+
- !ruby/object:Gem::Version
|
37
|
+
version: '0'
|
38
|
+
type: :development
|
39
|
+
prerelease: false
|
40
|
+
version_requirements: !ruby/object:Gem::Requirement
|
41
|
+
none: false
|
42
|
+
requirements:
|
43
|
+
- - ! '>='
|
44
|
+
- !ruby/object:Gem::Version
|
45
|
+
version: '0'
|
46
|
+
- !ruby/object:Gem::Dependency
|
47
|
+
name: thor
|
48
|
+
requirement: !ruby/object:Gem::Requirement
|
49
|
+
none: false
|
50
|
+
requirements:
|
51
|
+
- - ~>
|
52
|
+
- !ruby/object:Gem::Version
|
53
|
+
version: '0.19'
|
54
|
+
type: :runtime
|
55
|
+
prerelease: false
|
56
|
+
version_requirements: !ruby/object:Gem::Requirement
|
57
|
+
none: false
|
58
|
+
requirements:
|
59
|
+
- - ~>
|
60
|
+
- !ruby/object:Gem::Version
|
61
|
+
version: '0.19'
|
62
|
+
description: A command line tool for wielding cloudformation templates.
|
63
|
+
email:
|
64
|
+
- p@ptb.io
|
65
|
+
executables:
|
66
|
+
- admiral
|
67
|
+
extensions: []
|
68
|
+
extra_rdoc_files: []
|
69
|
+
files:
|
70
|
+
- .gitignore
|
71
|
+
- .ruby-version
|
72
|
+
- Gemfile
|
73
|
+
- LICENSE.txt
|
74
|
+
- README.md
|
75
|
+
- Rakefile
|
76
|
+
- admiral.gemspec
|
77
|
+
- bin/admiral
|
78
|
+
- lib/admiral.rb
|
79
|
+
- lib/admiral/base.rb
|
80
|
+
- lib/admiral/cli.rb
|
81
|
+
- spec/test.json
|
82
|
+
- spec/test.template
|
83
|
+
homepage: https://github.com/flippyhead/admiral
|
84
|
+
licenses:
|
85
|
+
- MIT
|
86
|
+
post_install_message:
|
87
|
+
rdoc_options: []
|
88
|
+
require_paths:
|
89
|
+
- lib
|
90
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
91
|
+
none: false
|
92
|
+
requirements:
|
93
|
+
- - ! '>='
|
94
|
+
- !ruby/object:Gem::Version
|
95
|
+
version: '0'
|
96
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
97
|
+
none: false
|
98
|
+
requirements:
|
99
|
+
- - ! '>='
|
100
|
+
- !ruby/object:Gem::Version
|
101
|
+
version: '0'
|
102
|
+
requirements: []
|
103
|
+
rubyforge_project:
|
104
|
+
rubygems_version: 1.8.23.2
|
105
|
+
signing_key:
|
106
|
+
specification_version: 3
|
107
|
+
summary: A command line tool for wielding cloudformation templates.
|
108
|
+
test_files:
|
109
|
+
- spec/test.json
|
110
|
+
- spec/test.template
|