boxen 2.9.0 → 3.0.0.beta1
Sign up to get free protection for your applications and to get access to all the features.
- data/boxen.gemspec +12 -12
- data/lib/boxen/check.rb +8 -39
- data/lib/boxen/cli.rb +19 -45
- data/lib/boxen/command.rb +142 -0
- data/lib/boxen/command/help.rb +40 -0
- data/lib/boxen/command/preflight.rb +38 -0
- data/lib/boxen/command/project.rb +49 -0
- data/lib/boxen/command/project/install.rb +33 -0
- data/lib/boxen/command/run.rb +199 -0
- data/lib/boxen/command/service.rb +61 -0
- data/lib/boxen/command/service/disable.rb +15 -0
- data/lib/boxen/command/service/enable.rb +15 -0
- data/lib/boxen/command/service/restart.rb +24 -0
- data/lib/boxen/command/version.rb +29 -0
- data/lib/boxen/command_status.rb +15 -0
- data/lib/boxen/config.rb +43 -61
- data/lib/boxen/hook.rb +15 -8
- data/lib/boxen/keychain.rb +1 -1
- data/lib/boxen/postflight/env.rb +1 -1
- data/lib/boxen/postflight/github_issue.rb +124 -0
- data/lib/boxen/postflight/hooks.rb +16 -0
- data/lib/boxen/postflight/web_hook.rb +63 -0
- data/lib/boxen/preflight.rb +4 -7
- data/lib/boxen/preflight/creds.rb +8 -47
- data/lib/boxen/preflight/facts.rb +36 -0
- data/lib/boxen/preflight/homebrew.rb +13 -0
- data/lib/boxen/preflight/identity.rb +2 -0
- data/lib/boxen/preflight/offline.rb +33 -0
- data/lib/boxen/preflight/os.rb +1 -1
- data/lib/boxen/preflight/update.rb +109 -0
- data/lib/boxen/util/logging.rb +59 -0
- data/lib/boxen/version.rb +3 -0
- data/script/bootstrap +1 -1
- data/script/tests +1 -0
- data/test/boxen/test.rb +1 -1
- data/test/boxen_cli_test.rb +8 -31
- data/test/boxen_command_test.rb +93 -0
- data/test/boxen_config_test.rb +1 -31
- data/test/boxen_directories_test.rb +4 -4
- data/test/boxen_hook_test.rb +25 -0
- data/test/command/help_test.rb +49 -0
- data/test/command/project/install_test.rb +34 -0
- data/test/command/project_test.rb +32 -0
- data/test/command/run_test.rb +21 -0
- data/test/command/service/disable_test.rb +49 -0
- data/test/command/service/enable_test.rb +49 -0
- data/test/command/service/restart_test.rb +53 -0
- data/test/command/service_test.rb +55 -0
- data/test/command/version_test.rb +15 -0
- data/test/{boxen_postflight_active_test.rb → postflight/boxen_postflight_active_test.rb} +3 -3
- data/test/{boxen_postflight_env_test.rb → postflight/boxen_postflight_env_test.rb} +0 -0
- data/test/{boxen_hook_github_issue_test.rb → postflight/boxen_postflight_github_issue_test.rb} +72 -82
- data/test/{boxen_hook_web_test.rb → postflight/boxen_postflight_web_hook_test.rb} +12 -11
- data/test/preflight/boxen_preflight_creds_test.rb +82 -0
- data/test/{boxen_preflight_etc_my_cnf_test.rb → preflight/boxen_preflight_etc_my_cnf_test.rb} +1 -1
- data/test/preflight/boxen_preflight_homebrew_test.rb +10 -0
- data/test/{boxen_preflight_rvm_test.rb → preflight/boxen_preflight_rvm_test.rb} +1 -1
- metadata +247 -171
- checksums.yaml +0 -7
- data/lib/boxen/flags.rb +0 -282
- data/lib/boxen/hook/github_issue.rb +0 -120
- data/lib/boxen/hook/web.rb +0 -56
- data/lib/boxen/puppeteer.rb +0 -121
- data/lib/boxen/runner.rb +0 -149
- data/test/boxen_check_test.rb +0 -55
- data/test/boxen_flags_test.rb +0 -217
- data/test/boxen_preflight_creds_test.rb +0 -177
- data/test/boxen_puppeteer_test.rb +0 -101
- data/test/boxen_runner_test.rb +0 -171
@@ -1,17 +1,18 @@
|
|
1
|
-
require
|
2
|
-
require
|
1
|
+
require 'boxen/test'
|
2
|
+
require 'boxen/postflight'
|
3
|
+
require 'boxen/postflight/web_hook'
|
3
4
|
|
4
5
|
class Boxen::Config
|
5
6
|
attr_writer :api
|
6
7
|
end
|
7
8
|
|
8
|
-
class
|
9
|
+
class BoxenPostflightWebHookTest < Boxen::Test
|
9
10
|
def setup
|
10
11
|
@config = Boxen::Config.new
|
11
12
|
@checkout = Boxen::Checkout.new(@config)
|
12
|
-
@
|
13
|
-
@
|
14
|
-
@hook =
|
13
|
+
@command = stub 'command', :success? => true
|
14
|
+
@hook = Boxen::Postflight::WebHook.new @config, @command
|
15
|
+
@hook.checkout = @checkout
|
15
16
|
end
|
16
17
|
|
17
18
|
def test_enabled
|
@@ -29,18 +30,18 @@ class BoxenHookWebTest < Boxen::Test
|
|
29
30
|
ENV['BOXEN_WEB_HOOK_URL'] = original
|
30
31
|
end
|
31
32
|
|
32
|
-
def
|
33
|
+
def test_ok
|
33
34
|
@hook.stubs(:enabled?).returns(false)
|
34
|
-
|
35
|
+
assert @hook.ok?
|
35
36
|
|
36
37
|
@hook.stubs(:enabled?).returns(true)
|
37
|
-
|
38
|
+
refute @hook.ok?
|
38
39
|
end
|
39
40
|
|
40
41
|
def test_run
|
41
42
|
@config.stubs(:user).returns('fred')
|
42
43
|
@checkout.stubs(:sha).returns('87dbag3')
|
43
|
-
@
|
44
|
+
@command.stubs(:success?).returns(false)
|
44
45
|
now = Time.now
|
45
46
|
Time.stubs(:now).returns(now)
|
46
47
|
|
@@ -55,4 +56,4 @@ class BoxenHookWebTest < Boxen::Test
|
|
55
56
|
|
56
57
|
@hook.run
|
57
58
|
end
|
58
|
-
end
|
59
|
+
end
|
@@ -0,0 +1,82 @@
|
|
1
|
+
require 'boxen/test'
|
2
|
+
require 'boxen/config'
|
3
|
+
require 'boxen/preflight/creds'
|
4
|
+
|
5
|
+
class BoxenPreflightCredsTest < Boxen::Test
|
6
|
+
def setup
|
7
|
+
@config = Boxen::Config.new do |c|
|
8
|
+
c.user = 'mojombo'
|
9
|
+
c.token = 'sekr3t!'
|
10
|
+
end
|
11
|
+
@command = stub 'command'
|
12
|
+
ENV.delete("BOXEN_GITHUB_LOGIN")
|
13
|
+
ENV.delete("BOXEN_GITHUB_PASSWORD")
|
14
|
+
end
|
15
|
+
|
16
|
+
def test_basic
|
17
|
+
preflight = Boxen::Preflight::Creds.new @config, @command
|
18
|
+
|
19
|
+
error = Octokit::Unauthorized.new
|
20
|
+
@config.api.stubs(:user).returns(error)
|
21
|
+
@config.stubs(:offline?).returns(false)
|
22
|
+
|
23
|
+
refute preflight.ok?
|
24
|
+
end
|
25
|
+
|
26
|
+
def test_basic_with_otp_challenge
|
27
|
+
preflight = Boxen::Preflight::Creds.new @config, @command
|
28
|
+
|
29
|
+
blank_opt = {:headers => {}}
|
30
|
+
good_otp = {:headers => {"X-GitHub-OTP" => "123456"}}
|
31
|
+
|
32
|
+
error = Octokit::OneTimePasswordRequired.new
|
33
|
+
error.stubs(:message).returns("OTP")
|
34
|
+
|
35
|
+
preflight.tmp_api.expects(:authorizations).with(blank_opt).raises(error)
|
36
|
+
preflight.tmp_api.expects(:authorizations).with(good_otp).returns([])
|
37
|
+
preflight.tmp_api.expects(:create_authorization).raises(error)
|
38
|
+
|
39
|
+
preflight.expects(:warn)
|
40
|
+
HighLine.any_instance.expects(:ask).returns("123456")
|
41
|
+
|
42
|
+
preflight.get_tokens
|
43
|
+
assert_equal "123456", preflight.otp
|
44
|
+
end
|
45
|
+
|
46
|
+
def test_fetch_login_and_password_when_nothing_is_given_in_env
|
47
|
+
# fetches login and password by asking
|
48
|
+
preflight = Boxen::Preflight::Creds.new @config, @command
|
49
|
+
HighLine.any_instance.expects(:ask).with("GitHub login: ").returns "l"
|
50
|
+
HighLine.any_instance.expects(:ask).with("GitHub password: ").returns "p"
|
51
|
+
preflight.send(:fetch_login_and_password)
|
52
|
+
|
53
|
+
assert_equal "l", @config.login
|
54
|
+
assert_equal "p", preflight.instance_variable_get(:@password)
|
55
|
+
end
|
56
|
+
|
57
|
+
def test_fetch_password_when_login_is_given_in_env
|
58
|
+
# fetches only password by asking
|
59
|
+
ENV["BOXEN_GITHUB_LOGIN"] = "l"
|
60
|
+
preflight = Boxen::Preflight::Creds.new @config, @command
|
61
|
+
preflight.expects(:warn)
|
62
|
+
HighLine.any_instance.expects(:ask).with("GitHub login: ").never
|
63
|
+
HighLine.any_instance.expects(:ask).with("GitHub password: ").returns "p"
|
64
|
+
preflight.send(:fetch_login_and_password)
|
65
|
+
|
66
|
+
assert_equal "l", @config.login
|
67
|
+
assert_equal "p", preflight.instance_variable_get(:@password)
|
68
|
+
end
|
69
|
+
|
70
|
+
def test_fetch_login_when_password_is_given_in_env
|
71
|
+
# fetches only login by asking
|
72
|
+
ENV["BOXEN_GITHUB_PASSWORD"] = "p"
|
73
|
+
preflight = Boxen::Preflight::Creds.new @config, @command
|
74
|
+
preflight.expects(:warn)
|
75
|
+
HighLine.any_instance.expects(:ask).with("GitHub login: ").returns "l"
|
76
|
+
HighLine.any_instance.expects(:ask).with("GitHub password: ").never
|
77
|
+
preflight.send(:fetch_login_and_password)
|
78
|
+
|
79
|
+
assert_equal "l", @config.login
|
80
|
+
assert_equal "p", preflight.instance_variable_get(:@password)
|
81
|
+
end
|
82
|
+
end
|
data/test/{boxen_preflight_etc_my_cnf_test.rb → preflight/boxen_preflight_etc_my_cnf_test.rb}
RENAMED
@@ -3,7 +3,7 @@ require 'boxen/preflight/etc_my_cnf'
|
|
3
3
|
|
4
4
|
class BoxenPreflightEtcMyCnfTest < Boxen::Test
|
5
5
|
def test_file_check
|
6
|
-
preflight = Boxen::Preflight::EtcMyCnf.new(mock('config'))
|
6
|
+
preflight = Boxen::Preflight::EtcMyCnf.new(mock('config'), mock('command'))
|
7
7
|
File.expects(:file?).with("/etc/my.cnf").returns(false)
|
8
8
|
assert preflight.ok?
|
9
9
|
end
|
@@ -0,0 +1,10 @@
|
|
1
|
+
require 'boxen/test'
|
2
|
+
require 'boxen/preflight/homebrew'
|
3
|
+
|
4
|
+
class BoxenPreflightHomebrewTest < Boxen::Test
|
5
|
+
def test_directory_check
|
6
|
+
preflight = Boxen::Preflight::Homebrew.new(mock('config'), mock('command'))
|
7
|
+
File.expects(:exist?).with("/usr/local/Library/Homebrew").returns(false)
|
8
|
+
assert preflight.ok?
|
9
|
+
end
|
10
|
+
end
|
@@ -3,7 +3,7 @@ require 'boxen/preflight/rvm'
|
|
3
3
|
|
4
4
|
class BoxenPreflightRVMTest < Boxen::Test
|
5
5
|
def test_directory_check
|
6
|
-
preflight = Boxen::Preflight::RVM.new(mock('config'))
|
6
|
+
preflight = Boxen::Preflight::RVM.new(mock('config'), mock('command'))
|
7
7
|
File.expects(:exist?).with("#{ENV['HOME']}/.rvm").returns(false)
|
8
8
|
assert preflight.ok?
|
9
9
|
end
|
metadata
CHANGED
@@ -1,192 +1,240 @@
|
|
1
|
-
--- !ruby/object:Gem::Specification
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
2
|
name: boxen
|
3
|
-
version: !ruby/object:Gem::Version
|
4
|
-
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
hash: -597667722
|
5
|
+
prerelease: 6
|
6
|
+
segments:
|
7
|
+
- 3
|
8
|
+
- 0
|
9
|
+
- 0
|
10
|
+
- beta
|
11
|
+
- 1
|
12
|
+
version: 3.0.0.beta1
|
5
13
|
platform: ruby
|
6
|
-
authors:
|
7
|
-
-
|
14
|
+
authors:
|
15
|
+
- John Barnette
|
16
|
+
- Will Farrington
|
17
|
+
- David Goodlad
|
8
18
|
autorequire:
|
9
19
|
bindir: bin
|
10
20
|
cert_chain: []
|
11
|
-
|
12
|
-
|
13
|
-
|
21
|
+
|
22
|
+
date: 2014-07-30 00:00:00 -07:00
|
23
|
+
default_executable:
|
24
|
+
dependencies:
|
25
|
+
- !ruby/object:Gem::Dependency
|
14
26
|
name: ansi
|
15
|
-
requirement: !ruby/object:Gem::Requirement
|
16
|
-
requirements:
|
17
|
-
- - "~>"
|
18
|
-
- !ruby/object:Gem::Version
|
19
|
-
version: '1.4'
|
20
|
-
type: :runtime
|
21
27
|
prerelease: false
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
- !ruby/object:Gem::Version
|
33
|
-
version: '1.0'
|
28
|
+
requirement: &id001 !ruby/object:Gem::Requirement
|
29
|
+
none: false
|
30
|
+
requirements:
|
31
|
+
- - ~>
|
32
|
+
- !ruby/object:Gem::Version
|
33
|
+
hash: 7
|
34
|
+
segments:
|
35
|
+
- 1
|
36
|
+
- 4
|
37
|
+
version: "1.4"
|
34
38
|
type: :runtime
|
39
|
+
version_requirements: *id001
|
40
|
+
- !ruby/object:Gem::Dependency
|
41
|
+
name: hiera
|
35
42
|
prerelease: false
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
- !ruby/object:Gem::Version
|
47
|
-
version: 1.6.0
|
43
|
+
requirement: &id002 !ruby/object:Gem::Requirement
|
44
|
+
none: false
|
45
|
+
requirements:
|
46
|
+
- - ~>
|
47
|
+
- !ruby/object:Gem::Version
|
48
|
+
hash: 15
|
49
|
+
segments:
|
50
|
+
- 1
|
51
|
+
- 0
|
52
|
+
version: "1.0"
|
48
53
|
type: :runtime
|
54
|
+
version_requirements: *id002
|
55
|
+
- !ruby/object:Gem::Dependency
|
56
|
+
name: highline
|
49
57
|
prerelease: false
|
50
|
-
|
51
|
-
|
52
|
-
|
53
|
-
|
54
|
-
|
55
|
-
|
56
|
-
|
57
|
-
|
58
|
-
|
59
|
-
|
60
|
-
- !ruby/object:Gem::Version
|
61
|
-
version: 1.7.7
|
62
|
-
- - "<"
|
63
|
-
- !ruby/object:Gem::Version
|
64
|
-
version: '2.0'
|
58
|
+
requirement: &id003 !ruby/object:Gem::Requirement
|
59
|
+
none: false
|
60
|
+
requirements:
|
61
|
+
- - ~>
|
62
|
+
- !ruby/object:Gem::Version
|
63
|
+
hash: 3
|
64
|
+
segments:
|
65
|
+
- 1
|
66
|
+
- 6
|
67
|
+
version: "1.6"
|
65
68
|
type: :runtime
|
69
|
+
version_requirements: *id003
|
70
|
+
- !ruby/object:Gem::Dependency
|
71
|
+
name: json_pure
|
66
72
|
prerelease: false
|
67
|
-
|
68
|
-
|
73
|
+
requirement: &id004 !ruby/object:Gem::Requirement
|
74
|
+
none: false
|
75
|
+
requirements:
|
69
76
|
- - ">="
|
70
|
-
- !ruby/object:Gem::Version
|
77
|
+
- !ruby/object:Gem::Version
|
78
|
+
hash: 5
|
79
|
+
segments:
|
80
|
+
- 1
|
81
|
+
- 7
|
82
|
+
- 7
|
71
83
|
version: 1.7.7
|
72
|
-
- -
|
73
|
-
- !ruby/object:Gem::Version
|
74
|
-
|
75
|
-
|
76
|
-
|
77
|
-
|
78
|
-
|
79
|
-
- - "~>"
|
80
|
-
- !ruby/object:Gem::Version
|
81
|
-
version: 1.0.0
|
84
|
+
- - <
|
85
|
+
- !ruby/object:Gem::Version
|
86
|
+
hash: 3
|
87
|
+
segments:
|
88
|
+
- 2
|
89
|
+
- 0
|
90
|
+
version: "2.0"
|
82
91
|
type: :runtime
|
92
|
+
version_requirements: *id004
|
93
|
+
- !ruby/object:Gem::Dependency
|
94
|
+
name: librarian-puppet
|
83
95
|
prerelease: false
|
84
|
-
|
85
|
-
|
86
|
-
|
87
|
-
|
96
|
+
requirement: &id005 !ruby/object:Gem::Requirement
|
97
|
+
none: false
|
98
|
+
requirements:
|
99
|
+
- - ~>
|
100
|
+
- !ruby/object:Gem::Version
|
101
|
+
hash: 23
|
102
|
+
segments:
|
103
|
+
- 1
|
104
|
+
- 0
|
105
|
+
- 0
|
88
106
|
version: 1.0.0
|
89
|
-
- !ruby/object:Gem::Dependency
|
90
|
-
name: octokit
|
91
|
-
requirement: !ruby/object:Gem::Requirement
|
92
|
-
requirements:
|
93
|
-
- - "~>"
|
94
|
-
- !ruby/object:Gem::Version
|
95
|
-
version: '2.7'
|
96
|
-
- - ">="
|
97
|
-
- !ruby/object:Gem::Version
|
98
|
-
version: 2.7.1
|
99
107
|
type: :runtime
|
108
|
+
version_requirements: *id005
|
109
|
+
- !ruby/object:Gem::Dependency
|
110
|
+
name: octokit
|
100
111
|
prerelease: false
|
101
|
-
|
102
|
-
|
103
|
-
|
104
|
-
|
105
|
-
|
112
|
+
requirement: &id006 !ruby/object:Gem::Requirement
|
113
|
+
none: false
|
114
|
+
requirements:
|
115
|
+
- - ~>
|
116
|
+
- !ruby/object:Gem::Version
|
117
|
+
hash: 13
|
118
|
+
segments:
|
119
|
+
- 2
|
120
|
+
- 7
|
121
|
+
version: "2.7"
|
106
122
|
- - ">="
|
107
|
-
- !ruby/object:Gem::Version
|
123
|
+
- !ruby/object:Gem::Version
|
124
|
+
hash: 17
|
125
|
+
segments:
|
126
|
+
- 2
|
127
|
+
- 7
|
128
|
+
- 1
|
108
129
|
version: 2.7.1
|
109
|
-
- !ruby/object:Gem::Dependency
|
110
|
-
name: puppet
|
111
|
-
requirement: !ruby/object:Gem::Requirement
|
112
|
-
requirements:
|
113
|
-
- - "~>"
|
114
|
-
- !ruby/object:Gem::Version
|
115
|
-
version: '3.7'
|
116
130
|
type: :runtime
|
131
|
+
version_requirements: *id006
|
132
|
+
- !ruby/object:Gem::Dependency
|
133
|
+
name: puppet
|
117
134
|
prerelease: false
|
118
|
-
|
119
|
-
|
120
|
-
|
121
|
-
|
122
|
-
|
123
|
-
|
135
|
+
requirement: &id007 !ruby/object:Gem::Requirement
|
136
|
+
none: false
|
137
|
+
requirements:
|
138
|
+
- - ~>
|
139
|
+
- !ruby/object:Gem::Version
|
140
|
+
hash: 7
|
141
|
+
segments:
|
142
|
+
- 3
|
143
|
+
- 0
|
144
|
+
version: "3.0"
|
145
|
+
type: :runtime
|
146
|
+
version_requirements: *id007
|
147
|
+
- !ruby/object:Gem::Dependency
|
124
148
|
name: minitest
|
125
|
-
requirement: !ruby/object:Gem::Requirement
|
126
|
-
requirements:
|
127
|
-
- - '='
|
128
|
-
- !ruby/object:Gem::Version
|
129
|
-
version: 4.4.0
|
130
|
-
type: :development
|
131
149
|
prerelease: false
|
132
|
-
|
133
|
-
|
134
|
-
|
135
|
-
|
136
|
-
|
137
|
-
|
138
|
-
|
139
|
-
|
140
|
-
|
141
|
-
|
142
|
-
- !ruby/object:Gem::Version
|
143
|
-
version: '0.13'
|
150
|
+
requirement: &id008 !ruby/object:Gem::Requirement
|
151
|
+
none: false
|
152
|
+
requirements:
|
153
|
+
- - ~>
|
154
|
+
- !ruby/object:Gem::Version
|
155
|
+
hash: 31
|
156
|
+
segments:
|
157
|
+
- 5
|
158
|
+
- 0
|
159
|
+
version: "5.0"
|
144
160
|
type: :development
|
161
|
+
version_requirements: *id008
|
162
|
+
- !ruby/object:Gem::Dependency
|
163
|
+
name: mocha
|
145
164
|
prerelease: false
|
146
|
-
|
147
|
-
|
148
|
-
|
149
|
-
|
150
|
-
|
165
|
+
requirement: &id009 !ruby/object:Gem::Requirement
|
166
|
+
none: false
|
167
|
+
requirements:
|
168
|
+
- - ~>
|
169
|
+
- !ruby/object:Gem::Version
|
170
|
+
hash: 17
|
171
|
+
segments:
|
172
|
+
- 0
|
173
|
+
- 13
|
174
|
+
version: "0.13"
|
175
|
+
type: :development
|
176
|
+
version_requirements: *id009
|
151
177
|
description: Manage Mac development boxes with love (and Puppet).
|
152
|
-
email:
|
153
|
-
-
|
154
|
-
|
178
|
+
email:
|
179
|
+
- jbarnette@github.com
|
180
|
+
- wfarr@github.com
|
181
|
+
- dgoodlad@github.com
|
182
|
+
executables:
|
183
|
+
- boxen
|
155
184
|
extensions: []
|
185
|
+
|
156
186
|
extra_rdoc_files: []
|
157
|
-
|
158
|
-
|
159
|
-
-
|
187
|
+
|
188
|
+
files:
|
189
|
+
- .gitignore
|
190
|
+
- .travis.yml
|
160
191
|
- Gemfile
|
161
192
|
- LICENSE
|
162
193
|
- README.md
|
194
|
+
- bin/boxen
|
163
195
|
- boxen.gemspec
|
164
196
|
- lib/boxen/check.rb
|
165
197
|
- lib/boxen/checkout.rb
|
166
198
|
- lib/boxen/cli.rb
|
199
|
+
- lib/boxen/command.rb
|
200
|
+
- lib/boxen/command/help.rb
|
201
|
+
- lib/boxen/command/preflight.rb
|
202
|
+
- lib/boxen/command/project.rb
|
203
|
+
- lib/boxen/command/project/install.rb
|
204
|
+
- lib/boxen/command/run.rb
|
205
|
+
- lib/boxen/command/service.rb
|
206
|
+
- lib/boxen/command/service/disable.rb
|
207
|
+
- lib/boxen/command/service/enable.rb
|
208
|
+
- lib/boxen/command/service/restart.rb
|
209
|
+
- lib/boxen/command/version.rb
|
210
|
+
- lib/boxen/command_status.rb
|
167
211
|
- lib/boxen/config.rb
|
168
212
|
- lib/boxen/error.rb
|
169
|
-
- lib/boxen/flags.rb
|
170
213
|
- lib/boxen/hook.rb
|
171
|
-
- lib/boxen/hook/github_issue.rb
|
172
|
-
- lib/boxen/hook/web.rb
|
173
214
|
- lib/boxen/keychain.rb
|
174
215
|
- lib/boxen/postflight.rb
|
175
216
|
- lib/boxen/postflight/active.rb
|
176
217
|
- lib/boxen/postflight/env.rb
|
218
|
+
- lib/boxen/postflight/github_issue.rb
|
219
|
+
- lib/boxen/postflight/hooks.rb
|
220
|
+
- lib/boxen/postflight/web_hook.rb
|
177
221
|
- lib/boxen/preflight.rb
|
178
222
|
- lib/boxen/preflight/creds.rb
|
179
223
|
- lib/boxen/preflight/directories.rb
|
180
224
|
- lib/boxen/preflight/etc_my_cnf.rb
|
225
|
+
- lib/boxen/preflight/facts.rb
|
226
|
+
- lib/boxen/preflight/homebrew.rb
|
181
227
|
- lib/boxen/preflight/identity.rb
|
228
|
+
- lib/boxen/preflight/offline.rb
|
182
229
|
- lib/boxen/preflight/os.rb
|
183
230
|
- lib/boxen/preflight/rbenv.rb
|
184
231
|
- lib/boxen/preflight/rvm.rb
|
232
|
+
- lib/boxen/preflight/update.rb
|
185
233
|
- lib/boxen/project.rb
|
186
|
-
- lib/boxen/puppeteer.rb
|
187
|
-
- lib/boxen/runner.rb
|
188
234
|
- lib/boxen/service.rb
|
189
235
|
- lib/boxen/util.rb
|
236
|
+
- lib/boxen/util/logging.rb
|
237
|
+
- lib/boxen/version.rb
|
190
238
|
- lib/facter/boxen.rb
|
191
239
|
- lib/system_timer.rb
|
192
240
|
- script/Boxen
|
@@ -196,73 +244,101 @@ files:
|
|
196
244
|
- script/tests
|
197
245
|
- src/keychain-helper.c
|
198
246
|
- test/boxen/test.rb
|
199
|
-
- test/boxen_check_test.rb
|
200
247
|
- test/boxen_checkout_test.rb
|
201
248
|
- test/boxen_cli_test.rb
|
249
|
+
- test/boxen_command_test.rb
|
202
250
|
- test/boxen_config_test.rb
|
203
251
|
- test/boxen_directories_test.rb
|
204
|
-
- test/
|
205
|
-
- test/boxen_hook_github_issue_test.rb
|
206
|
-
- test/boxen_hook_web_test.rb
|
252
|
+
- test/boxen_hook_test.rb
|
207
253
|
- test/boxen_keychain_test.rb
|
208
|
-
- test/boxen_postflight_active_test.rb
|
209
|
-
- test/boxen_postflight_env_test.rb
|
210
|
-
- test/boxen_preflight_creds_test.rb
|
211
|
-
- test/boxen_preflight_etc_my_cnf_test.rb
|
212
|
-
- test/boxen_preflight_rvm_test.rb
|
213
254
|
- test/boxen_project_test.rb
|
214
|
-
- test/boxen_puppeteer_test.rb
|
215
|
-
- test/boxen_runner_test.rb
|
216
255
|
- test/boxen_service_test.rb
|
217
256
|
- test/boxen_util_test.rb
|
257
|
+
- test/command/help_test.rb
|
258
|
+
- test/command/project/install_test.rb
|
259
|
+
- test/command/project_test.rb
|
260
|
+
- test/command/run_test.rb
|
261
|
+
- test/command/service/disable_test.rb
|
262
|
+
- test/command/service/enable_test.rb
|
263
|
+
- test/command/service/restart_test.rb
|
264
|
+
- test/command/service_test.rb
|
265
|
+
- test/command/version_test.rb
|
218
266
|
- test/fixtures/repo/modules/projects/manifests/first-project.pp
|
219
267
|
- test/fixtures/repo/modules/projects/manifests/second-project.pp
|
268
|
+
- test/postflight/boxen_postflight_active_test.rb
|
269
|
+
- test/postflight/boxen_postflight_env_test.rb
|
270
|
+
- test/postflight/boxen_postflight_github_issue_test.rb
|
271
|
+
- test/postflight/boxen_postflight_web_hook_test.rb
|
272
|
+
- test/preflight/boxen_preflight_creds_test.rb
|
273
|
+
- test/preflight/boxen_preflight_etc_my_cnf_test.rb
|
274
|
+
- test/preflight/boxen_preflight_homebrew_test.rb
|
275
|
+
- test/preflight/boxen_preflight_rvm_test.rb
|
220
276
|
- test/system_timer.rb
|
277
|
+
has_rdoc: true
|
221
278
|
homepage: https://github.com/boxen/boxen
|
222
|
-
licenses:
|
223
|
-
|
224
|
-
metadata: {}
|
279
|
+
licenses: []
|
280
|
+
|
225
281
|
post_install_message:
|
226
282
|
rdoc_options: []
|
227
|
-
|
283
|
+
|
284
|
+
require_paths:
|
228
285
|
- lib
|
229
|
-
required_ruby_version: !ruby/object:Gem::Requirement
|
230
|
-
|
231
|
-
|
232
|
-
- !ruby/object:Gem::Version
|
233
|
-
version: '0'
|
234
|
-
required_rubygems_version: !ruby/object:Gem::Requirement
|
235
|
-
requirements:
|
286
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
287
|
+
none: false
|
288
|
+
requirements:
|
236
289
|
- - ">="
|
237
|
-
- !ruby/object:Gem::Version
|
238
|
-
|
290
|
+
- !ruby/object:Gem::Version
|
291
|
+
hash: 3
|
292
|
+
segments:
|
293
|
+
- 0
|
294
|
+
version: "0"
|
295
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
296
|
+
none: false
|
297
|
+
requirements:
|
298
|
+
- - ">"
|
299
|
+
- !ruby/object:Gem::Version
|
300
|
+
hash: 25
|
301
|
+
segments:
|
302
|
+
- 1
|
303
|
+
- 3
|
304
|
+
- 1
|
305
|
+
version: 1.3.1
|
239
306
|
requirements: []
|
307
|
+
|
240
308
|
rubyforge_project:
|
241
|
-
rubygems_version:
|
309
|
+
rubygems_version: 1.6.2
|
242
310
|
signing_key:
|
243
|
-
specification_version:
|
311
|
+
specification_version: 3
|
244
312
|
summary: You know, for laptops and stuff.
|
245
|
-
test_files:
|
313
|
+
test_files:
|
246
314
|
- test/boxen/test.rb
|
247
|
-
- test/boxen_check_test.rb
|
248
315
|
- test/boxen_checkout_test.rb
|
249
316
|
- test/boxen_cli_test.rb
|
317
|
+
- test/boxen_command_test.rb
|
250
318
|
- test/boxen_config_test.rb
|
251
319
|
- test/boxen_directories_test.rb
|
252
|
-
- test/
|
253
|
-
- test/boxen_hook_github_issue_test.rb
|
254
|
-
- test/boxen_hook_web_test.rb
|
320
|
+
- test/boxen_hook_test.rb
|
255
321
|
- test/boxen_keychain_test.rb
|
256
|
-
- test/boxen_postflight_active_test.rb
|
257
|
-
- test/boxen_postflight_env_test.rb
|
258
|
-
- test/boxen_preflight_creds_test.rb
|
259
|
-
- test/boxen_preflight_etc_my_cnf_test.rb
|
260
|
-
- test/boxen_preflight_rvm_test.rb
|
261
322
|
- test/boxen_project_test.rb
|
262
|
-
- test/boxen_puppeteer_test.rb
|
263
|
-
- test/boxen_runner_test.rb
|
264
323
|
- test/boxen_service_test.rb
|
265
324
|
- test/boxen_util_test.rb
|
325
|
+
- test/command/help_test.rb
|
326
|
+
- test/command/project/install_test.rb
|
327
|
+
- test/command/project_test.rb
|
328
|
+
- test/command/run_test.rb
|
329
|
+
- test/command/service/disable_test.rb
|
330
|
+
- test/command/service/enable_test.rb
|
331
|
+
- test/command/service/restart_test.rb
|
332
|
+
- test/command/service_test.rb
|
333
|
+
- test/command/version_test.rb
|
266
334
|
- test/fixtures/repo/modules/projects/manifests/first-project.pp
|
267
335
|
- test/fixtures/repo/modules/projects/manifests/second-project.pp
|
336
|
+
- test/postflight/boxen_postflight_active_test.rb
|
337
|
+
- test/postflight/boxen_postflight_env_test.rb
|
338
|
+
- test/postflight/boxen_postflight_github_issue_test.rb
|
339
|
+
- test/postflight/boxen_postflight_web_hook_test.rb
|
340
|
+
- test/preflight/boxen_preflight_creds_test.rb
|
341
|
+
- test/preflight/boxen_preflight_etc_my_cnf_test.rb
|
342
|
+
- test/preflight/boxen_preflight_homebrew_test.rb
|
343
|
+
- test/preflight/boxen_preflight_rvm_test.rb
|
268
344
|
- test/system_timer.rb
|