stairs 0.0.1 → 0.0.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +8 -0
- data/lib/stairs/steps/balanced.rb +27 -0
- data/lib/stairs/steps.rb +1 -0
- data/lib/stairs/version.rb +1 -1
- data/stairs.gemspec +5 -1
- metadata +18 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 833bd6c4d72f929af87141bfd8b1b3918ca0e752
|
4
|
+
data.tar.gz: 02d1f1bc60dd0718df4ff57cae1eaa20d70acd49
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b7b75e24b00bfb76ea9b19c52733f154586ab0245ae97232efe736fb1b28e59cd137280b37f37de53ccd12052af5147b48a27992558b65e29955170126fb1573
|
7
|
+
data.tar.gz: 748201f6166f6f935c46b7ddd773c0922c109d99fe8823a3bab8a724d3fe21e80b17086e7ee91e7e609206a761844cf6bed2f0dbbbfb690ea4658b37fda7fd88
|
data/README.md
CHANGED
@@ -105,6 +105,14 @@ setup :s3
|
|
105
105
|
|
106
106
|
## Plugins for common setups
|
107
107
|
|
108
|
+
### Included plugins
|
109
|
+
|
110
|
+
* `:s3` interactive prompt for setting AWS + S3 bucket access credentials
|
111
|
+
* `:balanced`: automatically creates a test Marketplace on Balanced
|
112
|
+
* `:secret_token`: sets a secure random secret token
|
113
|
+
|
114
|
+
### Defining custom plugins
|
115
|
+
|
108
116
|
```ruby
|
109
117
|
require "fog"
|
110
118
|
class S3Setup < Stairs::Step
|
@@ -0,0 +1,27 @@
|
|
1
|
+
require "balanced"
|
2
|
+
|
3
|
+
module Stairs
|
4
|
+
module Steps
|
5
|
+
class Balanced < Step
|
6
|
+
title "Balanced Payments"
|
7
|
+
description "Creates a test Marketplace on Balanced"
|
8
|
+
|
9
|
+
def run
|
10
|
+
::Balanced.configure(api_key.secret)
|
11
|
+
|
12
|
+
env "BALANCED_URI", marketplace.uri
|
13
|
+
env "BALANCED_KEY", api_key.secret
|
14
|
+
end
|
15
|
+
|
16
|
+
private
|
17
|
+
|
18
|
+
def api_key
|
19
|
+
@api_key ||= ::Balanced::ApiKey.new.save
|
20
|
+
end
|
21
|
+
|
22
|
+
def marketplace
|
23
|
+
@marketplace ||= ::Balanced::Marketplace.new.save
|
24
|
+
end
|
25
|
+
end
|
26
|
+
end
|
27
|
+
end
|
data/lib/stairs/steps.rb
CHANGED
data/lib/stairs/version.rb
CHANGED
data/stairs.gemspec
CHANGED
@@ -22,5 +22,9 @@ Gem::Specification.new do |spec|
|
|
22
22
|
spec.add_development_dependency "rake"
|
23
23
|
|
24
24
|
spec.add_dependency "highline", "~> 1.6.20"
|
25
|
-
spec.add_dependency "activesupport", "
|
25
|
+
spec.add_dependency "activesupport", ">= 3.2.0"
|
26
|
+
|
27
|
+
# Plugin dependencies
|
28
|
+
# TODO better way to manage these?
|
29
|
+
spec.add_dependency "balanced", "~> 0.7.4"
|
26
30
|
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: stairs
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- patbenatar
|
@@ -56,16 +56,30 @@ dependencies:
|
|
56
56
|
name: activesupport
|
57
57
|
requirement: !ruby/object:Gem::Requirement
|
58
58
|
requirements:
|
59
|
-
- - '
|
59
|
+
- - '>='
|
60
60
|
- !ruby/object:Gem::Version
|
61
61
|
version: 3.2.0
|
62
62
|
type: :runtime
|
63
63
|
prerelease: false
|
64
64
|
version_requirements: !ruby/object:Gem::Requirement
|
65
65
|
requirements:
|
66
|
-
- - '
|
66
|
+
- - '>='
|
67
67
|
- !ruby/object:Gem::Version
|
68
68
|
version: 3.2.0
|
69
|
+
- !ruby/object:Gem::Dependency
|
70
|
+
name: balanced
|
71
|
+
requirement: !ruby/object:Gem::Requirement
|
72
|
+
requirements:
|
73
|
+
- - ~>
|
74
|
+
- !ruby/object:Gem::Version
|
75
|
+
version: 0.7.4
|
76
|
+
type: :runtime
|
77
|
+
prerelease: false
|
78
|
+
version_requirements: !ruby/object:Gem::Requirement
|
79
|
+
requirements:
|
80
|
+
- - ~>
|
81
|
+
- !ruby/object:Gem::Version
|
82
|
+
version: 0.7.4
|
69
83
|
description: A DSL and collection of plugins for easy setup of projects on new development
|
70
84
|
environments.
|
71
85
|
email:
|
@@ -83,6 +97,7 @@ files:
|
|
83
97
|
- lib/stairs/script.rb
|
84
98
|
- lib/stairs/step.rb
|
85
99
|
- lib/stairs/steps.rb
|
100
|
+
- lib/stairs/steps/balanced.rb
|
86
101
|
- lib/stairs/steps/s3.rb
|
87
102
|
- lib/stairs/steps/secret_token.rb
|
88
103
|
- lib/stairs/tasks.rb
|