stacksondeck 0.0.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: 7af020e0e80ad611a868b0bf7dece614221b8dda
4
+ data.tar.gz: 60e0e2d83c4e68a49f538c0257496f4e2b9a36bd
5
+ SHA512:
6
+ metadata.gz: 8f2025725538bb800aaf0cc8995e1d61daeff06c2216927aea55a1cc1682528a41b392094c3f8e7b997e4c18f188eb92076919d9b4eb80fc30492bb26499b495
7
+ data.tar.gz: c64108bb026edff7d84e93d75ebc0a187e68f96fe7af7d7fd8754305269c06cd80f5c89f4d5bcba17b195e4ddd8ebf5bdb5b0a2bf047a5049c80c3e04677299b
data/.gitignore ADDED
@@ -0,0 +1,16 @@
1
+ *~
2
+ *.log
3
+ *.out
4
+ *.tmp
5
+ *.swp
6
+ *.pid
7
+ *.pem
8
+ *.pub
9
+ *.gem
10
+ *.lock
11
+ doc
12
+ pkg
13
+ .DS_Store
14
+ config.json
15
+ .bundle
16
+ .yardoc
data/Gemfile ADDED
@@ -0,0 +1,15 @@
1
+ source 'https://rubygems.org'
2
+
3
+ gemspec
4
+
5
+ group :development do
6
+ gem 'pry'
7
+ gem 'rake'
8
+ gem 'yard'
9
+ gem 'version'
10
+ gem 'rubygems-tasks'
11
+ end
12
+
13
+ group :test do
14
+ gem 'minitest'
15
+ end
data/LICENSE ADDED
@@ -0,0 +1,13 @@
1
+ Copyright (c) 2015 Sean Clemmer and Blue Jeans Network
2
+
3
+ Permission to use, copy, modify, and/or distribute this software for any
4
+ purpose with or without fee is hereby granted, provided that the above
5
+ copyright notice and this permission notice appear in all copies.
6
+
7
+ THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
8
+ REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
9
+ AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
10
+ INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
11
+ LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
12
+ OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
13
+ PERFORMANCE OF THIS SOFTWARE.
data/Rakefile ADDED
@@ -0,0 +1,30 @@
1
+ require 'rubygems'
2
+ require 'bundler'
3
+ require 'rake'
4
+
5
+
6
+ require 'rake/testtask'
7
+ Rake::TestTask.new(:test) do |test|
8
+ test.libs << 'lib' << 'test'
9
+ test.test_files = FileList['test/test*.rb']
10
+ test.verbose = true
11
+ end
12
+
13
+ task :default => :test
14
+
15
+
16
+ require 'yard'
17
+ YARD::Rake::YardocTask.new do |t|
18
+ t.files = %w[ --readme Readme.md lib/**/*.rb - VERSION ]
19
+ end
20
+
21
+
22
+ require 'rubygems/tasks'
23
+ Gem::Tasks.new({ sign: {} }) do |tasks|
24
+ tasks.console.command = 'pry'
25
+ end
26
+ Gem::Tasks::Sign::Checksum.new sha2: true
27
+
28
+
29
+ require 'rake/version_task'
30
+ Rake::VersionTask.new
data/Readme.md ADDED
@@ -0,0 +1,14 @@
1
+ # Stacks (on Deck)
2
+
3
+ Helpful stuff for OpenStack.
4
+
5
+
6
+ ## Usage
7
+
8
+ $ sod help
9
+ Commands:
10
+ sod art # View the application art
11
+ sod help [COMMAND] # Describe available commands or one specific command
12
+ sod version # Echo the application version
13
+
14
+ Functionality coming soon!
data/VERSION ADDED
@@ -0,0 +1 @@
1
+ 0.0.1
data/bin/sod ADDED
@@ -0,0 +1,3 @@
1
+ #!/usr/bin/env ruby
2
+ require 'stacksondeck'
3
+ StacksOnDeck::Main.start
@@ -0,0 +1 @@
1
+ require_relative 'stacksondeck/main'
@@ -0,0 +1,28 @@
1
+ require 'thor/util'
2
+ require 'thor/actions'
3
+
4
+
5
+ module StacksOnDeck
6
+
7
+ # Mixins for StacksOnDeck's Thor subclasses.
8
+ module Helpers
9
+
10
+ # Save the canonical implementation of "puts"
11
+ alias_method :old_puts, :puts
12
+
13
+ # Monkeypatch puts to support Thor::Shell::Color.
14
+ def puts *args
15
+ return old_puts if args.empty?
16
+ old_puts shell.set_color(*args)
17
+ end
18
+
19
+
20
+ # Shortcut for Thor::Util.
21
+ def util ; Thor::Util end
22
+
23
+
24
+ # Shortcut for Thor::Actions.
25
+ def actions ; Thor::Actions end
26
+
27
+ end
28
+ end
@@ -0,0 +1,27 @@
1
+ require 'thor'
2
+ require 'slog'
3
+
4
+ require_relative 'helpers'
5
+ require_relative 'metadata'
6
+
7
+
8
+ module StacksOnDeck
9
+
10
+ # StacksOnDeck's entrypoint.
11
+ class Main < Thor
12
+ include StacksOnDeck::Helpers
13
+
14
+
15
+ desc 'version', 'Echo the application version'
16
+ def version
17
+ puts VERSION
18
+ end
19
+
20
+
21
+ desc 'art', 'View the application art'
22
+ def art
23
+ puts "\n%s\n" % ART
24
+ end
25
+
26
+ end
27
+ end
@@ -0,0 +1,38 @@
1
+ # StacksOnDeck a.k.a. SOD. SoUlJa BoY TeLlEm DoT cOm sHe ThIrStY.
2
+ module StacksOnDeck
3
+ # Officially, it's "stacksondeck" (but whatever)
4
+ NAME = 'stacksondeck'
5
+
6
+ # A quick summary for use in the command-line interface
7
+ SUMMARY = %q.Helpful stuff for OpenStack.
8
+
9
+ # Take credit for your work
10
+ AUTHOR = 'Sean Clemmer'
11
+
12
+ # Take responsibility for your work
13
+ EMAIL = 'sczizzo@gmail.com'
14
+
15
+ # Like the MIT license, but even simpler
16
+ LICENSE = 'ISC'
17
+
18
+ # Where you should look first
19
+ HOMEPAGE = 'https://github.com/sczizzo/stacksondeck'
20
+
21
+ # Project root
22
+ ROOT = File.join File.dirname(__FILE__), '..', '..'
23
+
24
+ # Pull the project version out of the VERSION file
25
+ VERSION = File.read(File.join(ROOT, 'VERSION')).strip
26
+
27
+ # Big money
28
+ ART = <<-'EOART'
29
+ $$$$$$\ $$$$$$\ $$$$$$$\
30
+ $$ __$$\ $$ __$$\ $$ __$$\
31
+ $$ / \__|$$ / $$ |$$ | $$ |
32
+ \$$$$$$\ $$ | $$ |$$ | $$ |
33
+ \____$$\ $$ | $$ |$$ | $$ |
34
+ $$\ $$ |$$ | $$ |$$ | $$ |
35
+ \$$$$$$ | $$$$$$ |$$$$$$$ |
36
+ \______/ \______/ \_______/
37
+ EOART
38
+ end
@@ -0,0 +1,23 @@
1
+ # -*- encoding: utf-8 -*-
2
+ $:.push File.expand_path(File.join('..', 'lib'), __FILE__)
3
+ require 'stacksondeck/metadata'
4
+
5
+ Gem::Specification.new do |s|
6
+ s.name = StacksOnDeck::NAME
7
+ s.version = StacksOnDeck::VERSION
8
+ s.platform = Gem::Platform::RUBY
9
+ s.author = StacksOnDeck::AUTHOR
10
+ s.email = StacksOnDeck::EMAIL
11
+ s.summary = StacksOnDeck::SUMMARY
12
+ s.description = StacksOnDeck::SUMMARY + '.'
13
+ s.homepage = StacksOnDeck::HOMEPAGE
14
+ s.license = StacksOnDeck::LICENSE
15
+
16
+ s.add_runtime_dependency 'thor', '~> 0'
17
+ s.add_runtime_dependency 'slog', '~> 1'
18
+
19
+ s.files = `git ls-files`.split("\n")
20
+ s.test_files = `git ls-files -- test/*`.split("\n")
21
+ s.executables = `git ls-files -- bin/*`.split("\n").map { |f| File.basename(f) }
22
+ s.require_paths = %w[ lib ]
23
+ end
@@ -0,0 +1,27 @@
1
+ require 'tmpdir'
2
+ require 'logger'
3
+ require 'tempfile'
4
+ require 'fileutils'
5
+ require 'pathname'
6
+
7
+ require 'minitest/autorun'
8
+
9
+ require_relative '../lib/stacksondeck'
10
+
11
+
12
+
13
+ class TestStacksOnDeck < MiniTest::Test
14
+ def setup
15
+ @tmpdir = Dir.mktmpdir
16
+ @logger = Logger.new STDERR
17
+ @logger.level = Logger::WARN
18
+ end
19
+
20
+ def teardown
21
+ FileUtils.rm_rf @tmpdir
22
+ end
23
+
24
+ def test_something
25
+ assert true
26
+ end
27
+ end
metadata ADDED
@@ -0,0 +1,86 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: stacksondeck
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.0.1
5
+ platform: ruby
6
+ authors:
7
+ - Sean Clemmer
8
+ autorequire:
9
+ bindir: bin
10
+ cert_chain: []
11
+ date: 2015-01-15 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: thor
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - "~>"
18
+ - !ruby/object:Gem::Version
19
+ version: '0'
20
+ type: :runtime
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - "~>"
25
+ - !ruby/object:Gem::Version
26
+ version: '0'
27
+ - !ruby/object:Gem::Dependency
28
+ name: slog
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - "~>"
32
+ - !ruby/object:Gem::Version
33
+ version: '1'
34
+ type: :runtime
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - "~>"
39
+ - !ruby/object:Gem::Version
40
+ version: '1'
41
+ description: Helpful stuff for OpenStack.
42
+ email: sczizzo@gmail.com
43
+ executables:
44
+ - sod
45
+ extensions: []
46
+ extra_rdoc_files: []
47
+ files:
48
+ - ".gitignore"
49
+ - Gemfile
50
+ - LICENSE
51
+ - Rakefile
52
+ - Readme.md
53
+ - VERSION
54
+ - bin/sod
55
+ - lib/stacksondeck.rb
56
+ - lib/stacksondeck/helpers.rb
57
+ - lib/stacksondeck/main.rb
58
+ - lib/stacksondeck/metadata.rb
59
+ - stacksondeck.gemspec
60
+ - test/test_stacksondeck.rb
61
+ homepage: https://github.com/sczizzo/stacksondeck
62
+ licenses:
63
+ - ISC
64
+ metadata: {}
65
+ post_install_message:
66
+ rdoc_options: []
67
+ require_paths:
68
+ - lib
69
+ required_ruby_version: !ruby/object:Gem::Requirement
70
+ requirements:
71
+ - - ">="
72
+ - !ruby/object:Gem::Version
73
+ version: '0'
74
+ required_rubygems_version: !ruby/object:Gem::Requirement
75
+ requirements:
76
+ - - ">="
77
+ - !ruby/object:Gem::Version
78
+ version: '0'
79
+ requirements: []
80
+ rubyforge_project:
81
+ rubygems_version: 2.2.2
82
+ signing_key:
83
+ specification_version: 4
84
+ summary: Helpful stuff for OpenStack
85
+ test_files:
86
+ - test/test_stacksondeck.rb