osx_provision 0.9.1 → 0.9.2
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.
- checksums.yaml +8 -8
- data/CHANGES +7 -0
- data/lib/osx_provision/osx_provision.rb +10 -10
- data/lib/osx_provision/version.rb +1 -1
- data/osx_provision.gemspec +28 -0
- data/thor/osx_install.thor +7 -58
- metadata +2 -1
checksums.yaml
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
---
|
2
2
|
!binary "U0hBMQ==":
|
3
3
|
metadata.gz: !binary |-
|
4
|
-
|
4
|
+
OTQzMDY5YTg0NTYxY2JhNDk4YThjNTVlY2Q2NzFhYjZlNmY5ODlkMw==
|
5
5
|
data.tar.gz: !binary |-
|
6
|
-
|
6
|
+
OWEyZDRiYjgzZjU5Nzc5ZjA1NGViZmM0OTg5YzlkOWYxMmRiNzE3OQ==
|
7
7
|
SHA512:
|
8
8
|
metadata.gz: !binary |-
|
9
|
-
|
10
|
-
|
11
|
-
|
9
|
+
YzEwMGYyZDdmMDc3NDA4MWJmZDczN2QxZDJhMzMyNWQ5YjdiOWIxMmEwY2Vm
|
10
|
+
MWU1OWMyMWFlZDY2ZGMwNzc5NTg0Yzg0YjIxNWU4YzgzNWU2ODYxN2E5ZGYw
|
11
|
+
OTFkZWY5ZGE0NjJhOWZlMTg4ZjY2YzMyM2NkOGMxNjYyZjBhNzU=
|
12
12
|
data.tar.gz: !binary |-
|
13
|
-
|
14
|
-
|
15
|
-
|
13
|
+
OGVhYzUyODkxYTEwNDQ4ZGExNjA0ZGEzMmE2ZjFmNzg0Mzg5MTIwYzU3NGEy
|
14
|
+
ZDI3M2YzMWJmMWEwZDIxYTg3OGY0MmZhYTdkMGFhMDhmNzY3OWY4YjVmOWEw
|
15
|
+
YjYyZWY0MmY4YzM0Y2Y5YTRjNjU0YzI4MTg3OTlkOTAzMDU5MzA=
|
data/CHANGES
CHANGED
@@ -9,7 +9,7 @@ class OsxProvision < GenericProvision
|
|
9
9
|
run(server_info.merge(capture_output: false, sudo: true), "prepare", env)
|
10
10
|
end
|
11
11
|
|
12
|
-
def
|
12
|
+
def brew
|
13
13
|
installed = package_installed("#{USER_LOCAL_BIN}/brew")
|
14
14
|
|
15
15
|
if installed
|
@@ -19,7 +19,7 @@ class OsxProvision < GenericProvision
|
|
19
19
|
end
|
20
20
|
end
|
21
21
|
|
22
|
-
def
|
22
|
+
def rvm
|
23
23
|
installed = package_installed "#{ENV['HOME']}/.rvm/bin/rvm"
|
24
24
|
|
25
25
|
if installed
|
@@ -29,7 +29,7 @@ class OsxProvision < GenericProvision
|
|
29
29
|
end
|
30
30
|
end
|
31
31
|
|
32
|
-
def
|
32
|
+
def npm
|
33
33
|
installed = package_installed "#{USER_LOCAL_BIN}/npm"
|
34
34
|
|
35
35
|
if installed
|
@@ -39,7 +39,7 @@ class OsxProvision < GenericProvision
|
|
39
39
|
end
|
40
40
|
end
|
41
41
|
|
42
|
-
def
|
42
|
+
def qt
|
43
43
|
installed = package_installed "#{USER_LOCAL_BIN}/qmake"
|
44
44
|
|
45
45
|
if installed
|
@@ -53,7 +53,7 @@ class OsxProvision < GenericProvision
|
|
53
53
|
run(server_info, "init_launch_agent", env)
|
54
54
|
end
|
55
55
|
|
56
|
-
def
|
56
|
+
def mysql
|
57
57
|
installed = package_installed "#{USER_LOCAL_BIN}/mysql"
|
58
58
|
|
59
59
|
if installed
|
@@ -69,7 +69,7 @@ class OsxProvision < GenericProvision
|
|
69
69
|
run(server_info, "mysql_restart", env.merge({started: started}))
|
70
70
|
end
|
71
71
|
|
72
|
-
def
|
72
|
+
def postgres
|
73
73
|
installed = package_installed "#{USER_LOCAL_BIN}/postgres"
|
74
74
|
|
75
75
|
if installed
|
@@ -93,8 +93,8 @@ class OsxProvision < GenericProvision
|
|
93
93
|
run server_info, "postgres_start", env
|
94
94
|
end
|
95
95
|
|
96
|
-
def
|
97
|
-
installed = package_installed "#{ENV['HOME']}/.rvm/rubies/ruby-1.9.3-
|
96
|
+
def ruby
|
97
|
+
installed = package_installed "#{ENV['HOME']}/.rvm/rubies/ruby-1.9.3-p527/bin/ruby"
|
98
98
|
|
99
99
|
if installed
|
100
100
|
puts "ruby already installed."
|
@@ -103,7 +103,7 @@ class OsxProvision < GenericProvision
|
|
103
103
|
end
|
104
104
|
end
|
105
105
|
|
106
|
-
def
|
106
|
+
def jenkins
|
107
107
|
installed = package_installed "/usr/local/opt/jenkins/libexec/jenkins.war"
|
108
108
|
|
109
109
|
if installed
|
@@ -119,7 +119,7 @@ class OsxProvision < GenericProvision
|
|
119
119
|
run(server_info, "jenkins_restart", env.merge({started: started}))
|
120
120
|
end
|
121
121
|
|
122
|
-
def
|
122
|
+
def selenium
|
123
123
|
installed = package_installed "/usr/local/opt/selenium-server-standalone/selenium-server-standalone*.jar"
|
124
124
|
|
125
125
|
if installed
|
@@ -0,0 +1,28 @@
|
|
1
|
+
# -*- encoding: utf-8 -*-
|
2
|
+
|
3
|
+
require File.expand_path(File.dirname(__FILE__) + '/lib/osx_provision/version')
|
4
|
+
|
5
|
+
Gem::Specification.new do |spec|
|
6
|
+
spec.name = "osx_provision"
|
7
|
+
spec.summary = %q{Library for building Mac OSX provisioning}
|
8
|
+
spec.description = %q{Library for building Mac OSX computer provisioning}
|
9
|
+
spec.email = "alexander.shvets@gmail.com"
|
10
|
+
spec.authors = ["Alexander Shvets"]
|
11
|
+
spec.homepage = "http://github.com/shvets/osx_provision"
|
12
|
+
|
13
|
+
spec.files = `git ls-files`.split($\)
|
14
|
+
spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
|
15
|
+
spec.require_paths = ["lib"]
|
16
|
+
spec.version = OsxProvision::VERSION
|
17
|
+
|
18
|
+
|
19
|
+
|
20
|
+
spec.add_runtime_dependency "text-interpolator", ["~> 1.0"]
|
21
|
+
spec.add_runtime_dependency "script_executor", ["~> 1.4"]
|
22
|
+
spec.add_runtime_dependency "thor", ["~> 0.19"]
|
23
|
+
spec.add_runtime_dependency "json_pure", ["~> 1.8"]
|
24
|
+
spec.add_development_dependency "gemspec_deps_gen", ["~> 1.1"]
|
25
|
+
spec.add_development_dependency "gemcutter", ["~> 0.7"]
|
26
|
+
|
27
|
+
end
|
28
|
+
|
data/thor/osx_install.thor
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
$: << File.expand_path(File.dirname(__FILE__) + '/../lib')
|
2
2
|
|
3
|
-
require 'osx_provision/
|
3
|
+
require 'osx_provision/osx_provision'
|
4
4
|
|
5
5
|
class OsxInstall < Thor
|
6
6
|
attr_reader :installer
|
@@ -35,53 +35,11 @@ class OsxInstall < Thor
|
|
35
35
|
invoke :postgres_create
|
36
36
|
end
|
37
37
|
|
38
|
-
desc "prepare", "prepare"
|
39
|
-
def prepare
|
40
|
-
installer.prepare
|
41
|
-
end
|
42
|
-
|
43
|
-
desc "brew", "Installs homebrew"
|
44
|
-
def brew
|
45
|
-
installer.homebrew_install
|
46
|
-
end
|
47
|
-
|
48
|
-
desc "rvm", "Installs rvm"
|
49
|
-
def rvm
|
50
|
-
installer.rvm_install
|
51
|
-
end
|
52
|
-
|
53
|
-
desc "npm", "Installs npm"
|
54
|
-
def npm
|
55
|
-
installer.npm_install
|
56
|
-
end
|
57
|
-
|
58
|
-
desc "qt", "Installs qt"
|
59
|
-
def qt
|
60
|
-
installer.qt_install
|
61
|
-
end
|
62
|
-
|
63
|
-
desc "init_launch_agent", "Inits launch agent"
|
64
|
-
def init_launch_agent
|
65
|
-
installer.init_launch_agent
|
66
|
-
end
|
67
|
-
|
68
|
-
desc "mysql", "Installs mysql server"
|
69
|
-
def mysql
|
70
|
-
installer.mysql_install
|
71
|
-
end
|
72
|
-
|
73
|
-
# brew uninstall mysql
|
74
|
-
|
75
38
|
desc "mysql_restart", "Restarts mysql server"
|
76
39
|
def mysql_restart
|
77
40
|
installer.mysql_restart
|
78
41
|
end
|
79
42
|
|
80
|
-
desc "postgres", "Installs postgres server"
|
81
|
-
def postgres
|
82
|
-
installer.postgres_install
|
83
|
-
end
|
84
|
-
|
85
43
|
desc "postgres_restart", "Restarts postgres server"
|
86
44
|
def postgres_restart
|
87
45
|
installer.postgres_restart
|
@@ -97,26 +55,11 @@ class OsxInstall < Thor
|
|
97
55
|
installer.postgres_start
|
98
56
|
end
|
99
57
|
|
100
|
-
desc "ruby", "Installs ruby"
|
101
|
-
def ruby
|
102
|
-
installer.ruby_install
|
103
|
-
end
|
104
|
-
|
105
|
-
desc "jenkins", "Installs jenkins server"
|
106
|
-
def jenkins
|
107
|
-
installer.jenkins_install
|
108
|
-
end
|
109
|
-
|
110
58
|
desc "jenkins_restart", "Restart jenkins server"
|
111
59
|
def jenkins_restart
|
112
60
|
installer.jenkins_restart
|
113
61
|
end
|
114
62
|
|
115
|
-
desc "selenium", "Installs selenium server"
|
116
|
-
def selenium
|
117
|
-
installer.selenium_install
|
118
|
-
end
|
119
|
-
|
120
63
|
desc "selenium_restart", "Restarts selenium server"
|
121
64
|
def selenium_restart
|
122
65
|
installer.selenium_restart
|
@@ -142,4 +85,10 @@ class OsxInstall < Thor
|
|
142
85
|
puts "test"
|
143
86
|
end
|
144
87
|
|
88
|
+
private
|
89
|
+
|
90
|
+
def method_missing(method, *args, &block)
|
91
|
+
installer.send(method, *args, &block)
|
92
|
+
end
|
93
|
+
|
145
94
|
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: osx_provision
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.9.
|
4
|
+
version: 0.9.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Alexander Shvets
|
@@ -114,6 +114,7 @@ files:
|
|
114
114
|
- lib/osx_provision/osx_provision.rb
|
115
115
|
- lib/osx_provision/osx_provision_scripts.sh
|
116
116
|
- lib/osx_provision/version.rb
|
117
|
+
- osx_provision.gemspec
|
117
118
|
- osx_provision.gemspec.erb
|
118
119
|
- osx_provision.json
|
119
120
|
- spec/osx_provision_spec.rb
|