stacksondeck 1.1.1 → 1.1.2

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 77daf92d24d14dfef49aa815b32cc00a287a2974
4
- data.tar.gz: 5d7e6eda7baac59805c78367063b75e10fadbb85
3
+ metadata.gz: 2ad2f38eed9b040ecd478a3b9f1e785c2c2ab6f7
4
+ data.tar.gz: 38a3d1ac048b988e0b42ed9d38ae9c1d25c03665
5
5
  SHA512:
6
- metadata.gz: 4ef20d0a692e4326d33a494493bf45aa9ddd3ce495a3b9cc9dc496a25cc4c0656d9083a7d0fc6eff005f5b7f566f751745998e1ba0146d857c8137130766c93d
7
- data.tar.gz: f06302b28976e7ebf440f9451be1b1728e115a28d181fb3edecb339584f16a5cc208f8809defd4d8d3ef61132f80697be0423c78732095182c1ecd7fd9ae8871
6
+ metadata.gz: 6b7aec1b2d045d23d27247dedde1cbf741b12dcfce7b3af8d9d9f04cf9d585b57e033d7702ba5f93a9726657fcd94ab9334ad90d26254371fa2dec9aa2cc885e
7
+ data.tar.gz: 5bb25be330c392a14840e28c8f2cdf71b46634f5e72496811e98ffd54299e27977202e29ecb16b843dbbe403fe1ff2a4cd7e239e40c43a4906834d0fabf763d2
data/Readme.md CHANGED
@@ -51,7 +51,7 @@ to deploy Stacks on Deck.
51
51
 
52
52
  ## API
53
53
 
54
- ### `GET /`
54
+ ### `GET /[?username=USERNAME]`
55
55
 
56
56
  Renders Chef nodes as a Rundeck Resource Model in [RESOURCE-YAML](http://rundeck.org/docs/man5/resource-yaml.html):
57
57
 
@@ -70,6 +70,9 @@ Renders Chef nodes as a Rundeck Resource Model in [RESOURCE-YAML](http://rundeck
70
70
  - example-node
71
71
  - example
72
72
 
73
+ If the `username` parameter is given, it will override the value provided on the
74
+ command line.
75
+
73
76
  ### `GET /v`
74
77
 
75
78
  Return the application version:
@@ -81,6 +84,10 @@ Return the application version:
81
84
 
82
85
  ## Changelog
83
86
 
87
+ #### v1.1.2
88
+
89
+ - Allow override of `username` via query parameter
90
+
84
91
  #### v1.1.1
85
92
 
86
93
  - Return up to a million nodes
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.1.1
1
+ 1.1.2
@@ -34,7 +34,15 @@ module StacksOnDeck
34
34
  get '/' do
35
35
  content_type :yaml
36
36
  last_modified @@last_modified
37
- @@db_dump
37
+ if params['username']
38
+ override_db = @@db.inject({}) do |h,(k,v)|
39
+ v['username'] = params['username']
40
+ h[k] = v ; h
41
+ end
42
+ YAML.dump override_db
43
+ else
44
+ @@db_dump
45
+ end
38
46
  end
39
47
 
40
48
  get '/v' do
@@ -24,6 +24,11 @@ module StacksOnDeck
24
24
  # Pull the project version out of the VERSION file
25
25
  VERSION = File.read(File.join(ROOT, 'VERSION')).strip
26
26
 
27
+ # Bundled extensions
28
+ TRAVELING_RUBY_VERSION = '20150210-2.2.0'
29
+ THIN_VERSION = '1.6.3'
30
+ EM_VERSION = '1.0.4'
31
+
27
32
  # Big money
28
33
  ART = <<-'EOART'
29
34
  $$$$$$\ $$$$$$\ $$$$$$$\
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: stacksondeck
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.1
4
+ version: 1.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Sean Clemmer
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-04-01 00:00:00.000000000 Z
11
+ date: 2015-04-18 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: thor
@@ -80,20 +80,34 @@ dependencies:
80
80
  - - "~>"
81
81
  - !ruby/object:Gem::Version
82
82
  version: '4.1'
83
+ - !ruby/object:Gem::Dependency
84
+ name: eventmachine
85
+ requirement: !ruby/object:Gem::Requirement
86
+ requirements:
87
+ - - '='
88
+ - !ruby/object:Gem::Version
89
+ version: 1.0.4
90
+ type: :runtime
91
+ prerelease: false
92
+ version_requirements: !ruby/object:Gem::Requirement
93
+ requirements:
94
+ - - '='
95
+ - !ruby/object:Gem::Version
96
+ version: 1.0.4
83
97
  - !ruby/object:Gem::Dependency
84
98
  name: thin
85
99
  requirement: !ruby/object:Gem::Requirement
86
100
  requirements:
87
- - - "~>"
101
+ - - '='
88
102
  - !ruby/object:Gem::Version
89
- version: '1'
103
+ version: 1.6.3
90
104
  type: :runtime
91
105
  prerelease: false
92
106
  version_requirements: !ruby/object:Gem::Requirement
93
107
  requirements:
94
- - - "~>"
108
+ - - '='
95
109
  - !ruby/object:Gem::Version
96
- version: '1'
110
+ version: 1.6.3
97
111
  description: Stupid simple Chef-Rundeck integration.
98
112
  email: sczizzo@gmail.com
99
113
  executables:
@@ -101,10 +115,7 @@ executables:
101
115
  extensions: []
102
116
  extra_rdoc_files: []
103
117
  files:
104
- - ".gitignore"
105
- - Gemfile
106
118
  - LICENSE
107
- - Rakefile
108
119
  - Readme.md
109
120
  - VERSION
110
121
  - bin/sod
@@ -113,7 +124,6 @@ files:
113
124
  - lib/stacksondeck/main.rb
114
125
  - lib/stacksondeck/metadata.rb
115
126
  - lib/stacksondeck/mjolnir.rb
116
- - stacksondeck.gemspec
117
127
  - test/test_stacksondeck.rb
118
128
  homepage: https://github.com/sczizzo/stacksondeck
119
129
  licenses:
data/.gitignore DELETED
@@ -1,18 +0,0 @@
1
- *~
2
- *.db
3
- *.log
4
- *.out
5
- *.tmp
6
- *.swp
7
- *.pid
8
- *.pem
9
- *.pub
10
- *.gem
11
- *.lock
12
- doc
13
- pkg
14
- tmp
15
- .DS_Store
16
- config.json
17
- .bundle
18
- .yardoc
data/Gemfile DELETED
@@ -1,15 +0,0 @@
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/Rakefile DELETED
@@ -1,30 +0,0 @@
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/stacksondeck.gemspec DELETED
@@ -1,27 +0,0 @@
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
- s.add_runtime_dependency 'hashie', '~> 2'
19
- s.add_runtime_dependency 'sinatra', '~> 1.4'
20
- s.add_runtime_dependency 'ridley', '~> 4.1'
21
- s.add_runtime_dependency 'thin', '~> 1'
22
-
23
- s.files = `git ls-files`.split("\n")
24
- s.test_files = `git ls-files -- test/*`.split("\n")
25
- s.executables = `git ls-files -- bin/*`.split("\n").map { |f| File.basename(f) }
26
- s.require_paths = %w[ lib ]
27
- end