infinum_setup 0.1.0
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 +7 -0
- data/.gitignore +9 -0
- data/.rspec +2 -0
- data/.travis.yml +5 -0
- data/CODE_OF_CONDUCT.md +49 -0
- data/Gemfile +4 -0
- data/LICENSE.txt +21 -0
- data/README.md +124 -0
- data/Rakefile +6 -0
- data/bin/console +14 -0
- data/bin/setup +8 -0
- data/exe/infinum_setup +23 -0
- data/infinum_setup.gemspec +38 -0
- data/lib/infinum_setup/base.rb +117 -0
- data/lib/infinum_setup/general.rb +22 -0
- data/lib/infinum_setup/install.rb +20 -0
- data/lib/infinum_setup/team.rb +11 -0
- data/lib/infinum_setup/version.rb +3 -0
- data/lib/infinum_setup.rb +15 -0
- data/programs/android.yml +12 -0
- data/programs/design.yml +12 -0
- data/programs/general.yml +27 -0
- data/programs/ios.yml +12 -0
- data/programs/javascript.yml +15 -0
- data/programs/pm.yml +12 -0
- data/programs/rails.yml +21 -0
- data/scripts/ruby.sh +22 -0
- metadata +170 -0
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: c3d1e029f99e2b500c2bf5acf16092f333dbf511
|
4
|
+
data.tar.gz: abc67b8bd0eb1c2617b31ddd72e6c0f2dd4d960e
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: cbd8c165429f4ac3260496660798119ab0f642fa9b2f4ecd591a0347cc2fe9f29e2dc3ce3b02ab7b22e149d781401eabf1d34cb2f9d3a94b55fd34f8a2ae7e0f
|
7
|
+
data.tar.gz: 7d8410f59ace8a2ae2d0c1b8a057921d70718bbf085d19daa2d6d3f0d62f3049c77a333c08d20869251961ce7ab67f688749fec6fede04bd95bb2754e66755e7
|
data/.gitignore
ADDED
data/.rspec
ADDED
data/.travis.yml
ADDED
data/CODE_OF_CONDUCT.md
ADDED
@@ -0,0 +1,49 @@
|
|
1
|
+
# Contributor Code of Conduct
|
2
|
+
|
3
|
+
As contributors and maintainers of this project, and in the interest of
|
4
|
+
fostering an open and welcoming community, we pledge to respect all people who
|
5
|
+
contribute through reporting issues, posting feature requests, updating
|
6
|
+
documentation, submitting pull requests or patches, and other activities.
|
7
|
+
|
8
|
+
We are committed to making participation in this project a harassment-free
|
9
|
+
experience for everyone, regardless of level of experience, gender, gender
|
10
|
+
identity and expression, sexual orientation, disability, personal appearance,
|
11
|
+
body size, race, ethnicity, age, religion, or nationality.
|
12
|
+
|
13
|
+
Examples of unacceptable behavior by participants include:
|
14
|
+
|
15
|
+
* The use of sexualized language or imagery
|
16
|
+
* Personal attacks
|
17
|
+
* Trolling or insulting/derogatory comments
|
18
|
+
* Public or private harassment
|
19
|
+
* Publishing other's private information, such as physical or electronic
|
20
|
+
addresses, without explicit permission
|
21
|
+
* Other unethical or unprofessional conduct
|
22
|
+
|
23
|
+
Project maintainers have the right and responsibility to remove, edit, or
|
24
|
+
reject comments, commits, code, wiki edits, issues, and other contributions
|
25
|
+
that are not aligned to this Code of Conduct, or to ban temporarily or
|
26
|
+
permanently any contributor for other behaviors that they deem inappropriate,
|
27
|
+
threatening, offensive, or harmful.
|
28
|
+
|
29
|
+
By adopting this Code of Conduct, project maintainers commit themselves to
|
30
|
+
fairly and consistently applying these principles to every aspect of managing
|
31
|
+
this project. Project maintainers who do not follow or enforce the Code of
|
32
|
+
Conduct may be permanently removed from the project team.
|
33
|
+
|
34
|
+
This code of conduct applies both within project spaces and in public spaces
|
35
|
+
when an individual is representing the project or its community.
|
36
|
+
|
37
|
+
Instances of abusive, harassing, or otherwise unacceptable behavior may be
|
38
|
+
reported by contacting a project maintainer at d4be4st@gmail.com. All
|
39
|
+
complaints will be reviewed and investigated and will result in a response that
|
40
|
+
is deemed necessary and appropriate to the circumstances. Maintainers are
|
41
|
+
obligated to maintain confidentiality with regard to the reporter of an
|
42
|
+
incident.
|
43
|
+
|
44
|
+
This Code of Conduct is adapted from the [Contributor Covenant][homepage],
|
45
|
+
version 1.3.0, available at
|
46
|
+
[http://contributor-covenant.org/version/1/3/0/][version]
|
47
|
+
|
48
|
+
[homepage]: http://contributor-covenant.org
|
49
|
+
[version]: http://contributor-covenant.org/version/1/3/0/
|
data/Gemfile
ADDED
data/LICENSE.txt
ADDED
@@ -0,0 +1,21 @@
|
|
1
|
+
The MIT License (MIT)
|
2
|
+
|
3
|
+
Copyright (c) 2017 Stjepan Hadjic
|
4
|
+
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
7
|
+
in the Software without restriction, including without limitation the rights
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
10
|
+
furnished to do so, subject to the following conditions:
|
11
|
+
|
12
|
+
The above copyright notice and this permission notice shall be included in
|
13
|
+
all copies or substantial portions of the Software.
|
14
|
+
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
21
|
+
THE SOFTWARE.
|
data/README.md
ADDED
@@ -0,0 +1,124 @@
|
|
1
|
+
# InfinumSetup
|
2
|
+
|
3
|
+
This script will help you bootstrap your shiny new laptop. If you need help please direct your questions to @stef.
|
4
|
+
|
5
|
+
If you feel there are programs missing please make a PR and I will be happy to merge it!
|
6
|
+
|
7
|
+
## Installation
|
8
|
+
|
9
|
+
Run the following script
|
10
|
+
|
11
|
+
$ sudo gem install infinum_setup
|
12
|
+
|
13
|
+
## Usage
|
14
|
+
|
15
|
+
$ infinum_setup
|
16
|
+
|
17
|
+
For a more advanced usage you can use:
|
18
|
+
|
19
|
+
$ infinum_setup --interactive
|
20
|
+
|
21
|
+
This is an interactive mode where you will be asked if you want to install optional programs/packages
|
22
|
+
|
23
|
+
## Development
|
24
|
+
|
25
|
+
### Content of program/#{team}.yml files
|
26
|
+
|
27
|
+
``` ruby
|
28
|
+
brew:
|
29
|
+
mandatory:
|
30
|
+
- imagemagick
|
31
|
+
- node
|
32
|
+
- mysql
|
33
|
+
- postgresql
|
34
|
+
optional:
|
35
|
+
cask:
|
36
|
+
mandatory:
|
37
|
+
optional:
|
38
|
+
- sequel-pro
|
39
|
+
- - flycut
|
40
|
+
- jumpcut
|
41
|
+
- postico
|
42
|
+
gem:
|
43
|
+
mandatory:
|
44
|
+
optional:
|
45
|
+
- bundler
|
46
|
+
- rails
|
47
|
+
command:
|
48
|
+
mandatory:
|
49
|
+
optional:
|
50
|
+
pow: curl get.pow.cx | sh
|
51
|
+
```
|
52
|
+
|
53
|
+
### Top level commands
|
54
|
+
|
55
|
+
There are (for now) 5 top level commands you can use:
|
56
|
+
|
57
|
+
- brew
|
58
|
+
- cask
|
59
|
+
- gem
|
60
|
+
- npm
|
61
|
+
- command
|
62
|
+
|
63
|
+
### Optionality
|
64
|
+
|
65
|
+
Next level is the optionality of the programs. If you feel like a program must be installed put it under `mandatory` key.
|
66
|
+
If you feel like a program is a nice to have but not mandatory put it under `optional` key. If `infinum_setup` is run in interactive mode a user will be prompted for each optional program.
|
67
|
+
|
68
|
+
### Programs
|
69
|
+
|
70
|
+
For each of the top level commands except `command`, the script requires an array of programs.
|
71
|
+
|
72
|
+
``` ruby
|
73
|
+
cask:
|
74
|
+
optional:
|
75
|
+
- skype
|
76
|
+
- vcl
|
77
|
+
```
|
78
|
+
|
79
|
+
You can also write an array of programs where in interactive mode the user will be prompted with a multiple select choice, and in non interactive mode the first program will be installed.
|
80
|
+
|
81
|
+
``` ruby
|
82
|
+
cask:
|
83
|
+
optional:
|
84
|
+
- - google-chrome
|
85
|
+
- firefox
|
86
|
+
- slack
|
87
|
+
```
|
88
|
+
|
89
|
+
```
|
90
|
+
Select programs to install (Use arrow keys, press Space to select and Enter to finish)
|
91
|
+
‣ ⬡ google-chrome
|
92
|
+
⬡ firefox
|
93
|
+
```
|
94
|
+
|
95
|
+
The `commands` programs expect a hash instead of an array. These commands will be run directly as they are written
|
96
|
+
|
97
|
+
``` ruby
|
98
|
+
command:
|
99
|
+
mandatory:
|
100
|
+
ruby: curl -L https://raw.github.com/infinum/infinum_setup/master/scripts/ruby.sh | sh
|
101
|
+
optional:
|
102
|
+
OhMyZsh: curl -L https://raw.github.com/robbyrussell/oh-my-zsh/master/tools/install.sh | sh
|
103
|
+
```
|
104
|
+
|
105
|
+
```
|
106
|
+
Installing ruby
|
107
|
+
curl -L https://raw.github.com/infinum/infinum_setup/master/scripts/ruby.sh | sh
|
108
|
+
Install OhMyZsh Yes
|
109
|
+
Installing OhMyZsh
|
110
|
+
curl -L https://raw.github.com/robbyrussell/oh-my-zsh/master/tools/install.sh | sh
|
111
|
+
```
|
112
|
+
|
113
|
+
### Writing your own scripts
|
114
|
+
|
115
|
+
You can use `scripts` folder for writing your own scripts just as I did for ruby.
|
116
|
+
|
117
|
+
## Contributing
|
118
|
+
|
119
|
+
Bug reports and pull requests are welcome on GitHub at https://github.com/infinum/infinum_setup. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [Contributor Covenant](http://contributor-covenant.org) code of conduct.
|
120
|
+
|
121
|
+
|
122
|
+
## License
|
123
|
+
|
124
|
+
The gem is available as open source under the terms of the [MIT License](http://opensource.org/licenses/MIT).
|
data/Rakefile
ADDED
data/bin/console
ADDED
@@ -0,0 +1,14 @@
|
|
1
|
+
#!/usr/bin/env ruby
|
2
|
+
|
3
|
+
require "bundler/setup"
|
4
|
+
require "infinum_setup"
|
5
|
+
|
6
|
+
# You can add fixtures and/or initialization code here to make experimenting
|
7
|
+
# with your gem easier. You can also use a different console, if you like.
|
8
|
+
|
9
|
+
# (If you use this, don't forget to add pry to your Gemfile!)
|
10
|
+
require "pry"
|
11
|
+
Pry.start
|
12
|
+
|
13
|
+
# require "irb"
|
14
|
+
# IRB.start
|
data/bin/setup
ADDED
data/exe/infinum_setup
ADDED
@@ -0,0 +1,23 @@
|
|
1
|
+
#!/usr/bin/env ruby
|
2
|
+
|
3
|
+
require 'rubygems'
|
4
|
+
require 'commander/import'
|
5
|
+
require 'infinum_setup'
|
6
|
+
require 'pry' if InfinumSetup.dev?
|
7
|
+
|
8
|
+
program :name, 'infinum_setup'
|
9
|
+
program :version, '0.0.1'
|
10
|
+
program :description, 'Setup infinum laptops'
|
11
|
+
|
12
|
+
default_command :install
|
13
|
+
|
14
|
+
command :install do |c|
|
15
|
+
c.syntax = 'infinum_setup'
|
16
|
+
c.description = 'Setups your laptop'
|
17
|
+
c.option '-i', '--interactive', 'For expierienced users'
|
18
|
+
c.option '-s', '--simulate', 'Try before you buy'
|
19
|
+
c.action do |_args, options|
|
20
|
+
options.team = InfinumSetup::Install.select_team
|
21
|
+
InfinumSetup::Install.new(options).call
|
22
|
+
end
|
23
|
+
end
|
@@ -0,0 +1,38 @@
|
|
1
|
+
# coding: utf-8
|
2
|
+
lib = File.expand_path('../lib', __FILE__)
|
3
|
+
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
4
|
+
require 'infinum_setup/version'
|
5
|
+
|
6
|
+
Gem::Specification.new do |spec|
|
7
|
+
spec.name = 'infinum_setup'
|
8
|
+
spec.version = InfinumSetup::VERSION
|
9
|
+
spec.authors = ['Stjepan Hadjic']
|
10
|
+
spec.email = ['stjepan.hadjic@infinum.co']
|
11
|
+
|
12
|
+
spec.summary = 'This script will help you bootstrap your shiny new laptop'
|
13
|
+
spec.description = 'This script will help you bootstrap your shiny new laptop'
|
14
|
+
spec.homepage = 'https://github.com/infinum/infinum_setup'
|
15
|
+
spec.license = 'MIT'
|
16
|
+
|
17
|
+
# Prevent pushing this gem to RubyGems.org. To allow pushes either set the 'allowed_push_host'
|
18
|
+
# to allow pushing to a single host or delete this section to allow pushing to any host.
|
19
|
+
if spec.respond_to?(:metadata)
|
20
|
+
spec.metadata['allowed_push_host'] = 'https://rubygems.org'
|
21
|
+
else
|
22
|
+
raise 'RubyGems 2.0 or newer is required to protect against public gem pushes.'
|
23
|
+
end
|
24
|
+
|
25
|
+
spec.files = `git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(spec)/}) }
|
26
|
+
spec.bindir = 'exe'
|
27
|
+
spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
|
28
|
+
spec.require_paths = ['lib']
|
29
|
+
|
30
|
+
spec.add_development_dependency 'bundler', '~> 1.12'
|
31
|
+
spec.add_development_dependency 'rake', '~> 10.0'
|
32
|
+
spec.add_development_dependency 'rspec', '~> 3.0'
|
33
|
+
spec.add_development_dependency 'pry'
|
34
|
+
|
35
|
+
spec.add_dependency 'commander'
|
36
|
+
spec.add_dependency 'tty-prompt'
|
37
|
+
spec.add_dependency 'tty-which', '~> 0.2'
|
38
|
+
end
|
@@ -0,0 +1,117 @@
|
|
1
|
+
module InfinumSetup
|
2
|
+
class Base
|
3
|
+
def initialize(options)
|
4
|
+
@options = options
|
5
|
+
end
|
6
|
+
|
7
|
+
def self.install(options)
|
8
|
+
new(options).call
|
9
|
+
end
|
10
|
+
|
11
|
+
private
|
12
|
+
|
13
|
+
def call
|
14
|
+
raise NotImplemented
|
15
|
+
end
|
16
|
+
|
17
|
+
def interactive?
|
18
|
+
@options.interactive
|
19
|
+
end
|
20
|
+
|
21
|
+
def simulate?
|
22
|
+
@options.simulate
|
23
|
+
end
|
24
|
+
|
25
|
+
def prompt
|
26
|
+
@prompt ||= TTY::Prompt.new
|
27
|
+
end
|
28
|
+
|
29
|
+
def execute(cmd)
|
30
|
+
if simulate?
|
31
|
+
prompt.warn cmd
|
32
|
+
else
|
33
|
+
`#{cmd}`
|
34
|
+
end
|
35
|
+
end
|
36
|
+
|
37
|
+
def install_programs
|
38
|
+
commands.each do |command_name, command_hash|
|
39
|
+
next unless command_hash
|
40
|
+
command_hash.each do |optionality, programs|
|
41
|
+
next unless programs
|
42
|
+
case programs
|
43
|
+
when Hash
|
44
|
+
programs.each do |program, command|
|
45
|
+
case optionality
|
46
|
+
when 'mandatory' then install_program(program, command)
|
47
|
+
when 'optional' then install_if_agree(program, command)
|
48
|
+
end
|
49
|
+
end
|
50
|
+
else
|
51
|
+
programs.each do |program|
|
52
|
+
case optionality
|
53
|
+
when 'mandatory' then install_program(program, command_name)
|
54
|
+
when 'optional' then install_if_agree(program, command_name)
|
55
|
+
end
|
56
|
+
end
|
57
|
+
end
|
58
|
+
end
|
59
|
+
end
|
60
|
+
end
|
61
|
+
|
62
|
+
def commands(team = 'general')
|
63
|
+
@commands ||=
|
64
|
+
if InfinumSetup.dev?
|
65
|
+
YAML.load_file("programs/#{team}.yml")
|
66
|
+
else
|
67
|
+
YAML.load(open("https://raw.github.com/infinum/infinum_setup/master/programs/#{team}.yml"))
|
68
|
+
end
|
69
|
+
end
|
70
|
+
|
71
|
+
def install_if_agree(programs, command)
|
72
|
+
case programs
|
73
|
+
when String
|
74
|
+
return if interactive? && !prompt.yes?("Install #{programs}")
|
75
|
+
install_program(programs, command)
|
76
|
+
when Hash
|
77
|
+
return if interactive? && !prompt.yes?("Install #{programs.keys.first}")
|
78
|
+
install_program(programs.keys.first, programs.values.first)
|
79
|
+
when Array
|
80
|
+
if interactive?
|
81
|
+
choices = prompt.multi_select('Select programs to install', programs)
|
82
|
+
choices.each { |choice| install_program(choice, command) }
|
83
|
+
else
|
84
|
+
install_program(programs.first, command)
|
85
|
+
end
|
86
|
+
end
|
87
|
+
end
|
88
|
+
|
89
|
+
def install_program(program, command)
|
90
|
+
return if !simulate? && program_exist?(program, command)
|
91
|
+
prompt.ok "Installing #{program}"
|
92
|
+
case command
|
93
|
+
when 'brew'
|
94
|
+
execute "brew install #{program}"
|
95
|
+
when 'cask'
|
96
|
+
execute "brew cask install #{program}"
|
97
|
+
when 'gem'
|
98
|
+
execute "gem install #{program} --no-document"
|
99
|
+
when 'npm'
|
100
|
+
execute "npm -g install #{program}"
|
101
|
+
else
|
102
|
+
execute command
|
103
|
+
end
|
104
|
+
end
|
105
|
+
|
106
|
+
def program_exist?(program, command)
|
107
|
+
case command
|
108
|
+
when 'cask'
|
109
|
+
!`brew cask info #{program}`.include?('Not installed')
|
110
|
+
when 'brew', 'gem'
|
111
|
+
TTY::Which.exist?(program)
|
112
|
+
else
|
113
|
+
false
|
114
|
+
end
|
115
|
+
end
|
116
|
+
end
|
117
|
+
end
|
@@ -0,0 +1,22 @@
|
|
1
|
+
module InfinumSetup
|
2
|
+
class General < Base
|
3
|
+
def call
|
4
|
+
install_xcode_select
|
5
|
+
install_brew
|
6
|
+
install_programs
|
7
|
+
end
|
8
|
+
|
9
|
+
private
|
10
|
+
|
11
|
+
def install_xcode_select
|
12
|
+
prompt.ok 'Installing xcode-select'
|
13
|
+
execute %(sudo xcode-select --install)
|
14
|
+
end
|
15
|
+
|
16
|
+
def install_brew
|
17
|
+
return if !simulate? && TTY::Which.exist?('brew')
|
18
|
+
prompt.ok 'Installing brew'
|
19
|
+
execute %(/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)")
|
20
|
+
end
|
21
|
+
end
|
22
|
+
end
|
@@ -0,0 +1,20 @@
|
|
1
|
+
module InfinumSetup
|
2
|
+
class Install
|
3
|
+
def initialize(options)
|
4
|
+
@options = options
|
5
|
+
end
|
6
|
+
|
7
|
+
def call
|
8
|
+
InfinumSetup::General.install(options)
|
9
|
+
InfinumSetup::Team.install(options)
|
10
|
+
end
|
11
|
+
|
12
|
+
def self.select_team
|
13
|
+
TTY::Prompt.new.select('Select your team', %w{rails javascript android ios design pm other})
|
14
|
+
end
|
15
|
+
|
16
|
+
private
|
17
|
+
|
18
|
+
attr_reader :options
|
19
|
+
end
|
20
|
+
end
|
@@ -0,0 +1,15 @@
|
|
1
|
+
require 'yaml'
|
2
|
+
require 'open-uri'
|
3
|
+
require 'tty-prompt'
|
4
|
+
require 'tty-which'
|
5
|
+
require 'infinum_setup/base'
|
6
|
+
require 'infinum_setup/general'
|
7
|
+
require 'infinum_setup/team'
|
8
|
+
require 'infinum_setup/install'
|
9
|
+
require 'infinum_setup/version'
|
10
|
+
|
11
|
+
module InfinumSetup
|
12
|
+
def self.dev?
|
13
|
+
ENV['SETUP_ENV'] == 'dev'
|
14
|
+
end
|
15
|
+
end
|
data/programs/design.yml
ADDED
@@ -0,0 +1,27 @@
|
|
1
|
+
brew:
|
2
|
+
mandatory:
|
3
|
+
- git
|
4
|
+
- ack
|
5
|
+
- rbenv
|
6
|
+
command:
|
7
|
+
mandatory:
|
8
|
+
ruby: curl -L https://raw.github.com/infinum/infinum_setup/master/scripts/ruby.sh | sh
|
9
|
+
optional:
|
10
|
+
OhMyZsh: curl -L https://raw.github.com/robbyrussell/oh-my-zsh/master/tools/install.sh | sh
|
11
|
+
cask:
|
12
|
+
mandatory:
|
13
|
+
- slack
|
14
|
+
optional:
|
15
|
+
- alfred
|
16
|
+
- dropbox
|
17
|
+
- google-drive
|
18
|
+
- - flycut
|
19
|
+
- jumpcut
|
20
|
+
- spectacle
|
21
|
+
- - google-chrome
|
22
|
+
- firefox
|
23
|
+
- skype
|
24
|
+
- - atom
|
25
|
+
- sublime-text
|
26
|
+
- vlc
|
27
|
+
- the-unarchiver
|
data/programs/ios.yml
ADDED
data/programs/pm.yml
ADDED
data/programs/rails.yml
ADDED
@@ -0,0 +1,21 @@
|
|
1
|
+
brew:
|
2
|
+
mandatory:
|
3
|
+
- imagemagick
|
4
|
+
- node
|
5
|
+
- mysql
|
6
|
+
- postgresql
|
7
|
+
optional:
|
8
|
+
cask:
|
9
|
+
mandatory:
|
10
|
+
optional:
|
11
|
+
- sequel-pro
|
12
|
+
- postico
|
13
|
+
gem:
|
14
|
+
mandatory:
|
15
|
+
optional:
|
16
|
+
- bundler
|
17
|
+
- rails
|
18
|
+
command:
|
19
|
+
mandatory:
|
20
|
+
optional:
|
21
|
+
pow: curl get.pow.cx | sh
|
data/scripts/ruby.sh
ADDED
@@ -0,0 +1,22 @@
|
|
1
|
+
#!/usr/bin/env bash
|
2
|
+
|
3
|
+
LATEST_RUBY_VERSION=`rbenv install --list | grep -v - | tail -1 | tr -d '[[:space:]]'`
|
4
|
+
echo "Installing Ruby $LATEST_RUBY_VERSION"
|
5
|
+
|
6
|
+
rbenv install $LATEST_RUBY_VERSION
|
7
|
+
|
8
|
+
echo "Setting $LATEST_RUBY_VERSION to global"
|
9
|
+
rbenv global $LATEST_RUBY_VERSION
|
10
|
+
rbenv rehash
|
11
|
+
|
12
|
+
if ! grep -qs "rbenv init" ~/.bashrc; then
|
13
|
+
echo 'export PATH="$HOME/.rbenv/bin:$PATH"' >> ~/.bashrc
|
14
|
+
echo 'eval "$(rbenv init -)"' >> ~/.bashrc
|
15
|
+
eval "$(rbenv init -)"
|
16
|
+
fi
|
17
|
+
|
18
|
+
if ! grep -qs "rbenv init" ~/.zshrc; then
|
19
|
+
echo 'export PATH="$HOME/.rbenv/bin:$PATH"' >> ~/.zshrc
|
20
|
+
echo 'eval "$(rbenv init -)"' >> ~/.zshrc
|
21
|
+
eval "$(rbenv init -)"
|
22
|
+
fi
|
metadata
ADDED
@@ -0,0 +1,170 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: infinum_setup
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.1.0
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- Stjepan Hadjic
|
8
|
+
autorequire:
|
9
|
+
bindir: exe
|
10
|
+
cert_chain: []
|
11
|
+
date: 2017-01-29 00:00:00.000000000 Z
|
12
|
+
dependencies:
|
13
|
+
- !ruby/object:Gem::Dependency
|
14
|
+
name: bundler
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
16
|
+
requirements:
|
17
|
+
- - "~>"
|
18
|
+
- !ruby/object:Gem::Version
|
19
|
+
version: '1.12'
|
20
|
+
type: :development
|
21
|
+
prerelease: false
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
23
|
+
requirements:
|
24
|
+
- - "~>"
|
25
|
+
- !ruby/object:Gem::Version
|
26
|
+
version: '1.12'
|
27
|
+
- !ruby/object:Gem::Dependency
|
28
|
+
name: rake
|
29
|
+
requirement: !ruby/object:Gem::Requirement
|
30
|
+
requirements:
|
31
|
+
- - "~>"
|
32
|
+
- !ruby/object:Gem::Version
|
33
|
+
version: '10.0'
|
34
|
+
type: :development
|
35
|
+
prerelease: false
|
36
|
+
version_requirements: !ruby/object:Gem::Requirement
|
37
|
+
requirements:
|
38
|
+
- - "~>"
|
39
|
+
- !ruby/object:Gem::Version
|
40
|
+
version: '10.0'
|
41
|
+
- !ruby/object:Gem::Dependency
|
42
|
+
name: rspec
|
43
|
+
requirement: !ruby/object:Gem::Requirement
|
44
|
+
requirements:
|
45
|
+
- - "~>"
|
46
|
+
- !ruby/object:Gem::Version
|
47
|
+
version: '3.0'
|
48
|
+
type: :development
|
49
|
+
prerelease: false
|
50
|
+
version_requirements: !ruby/object:Gem::Requirement
|
51
|
+
requirements:
|
52
|
+
- - "~>"
|
53
|
+
- !ruby/object:Gem::Version
|
54
|
+
version: '3.0'
|
55
|
+
- !ruby/object:Gem::Dependency
|
56
|
+
name: pry
|
57
|
+
requirement: !ruby/object:Gem::Requirement
|
58
|
+
requirements:
|
59
|
+
- - ">="
|
60
|
+
- !ruby/object:Gem::Version
|
61
|
+
version: '0'
|
62
|
+
type: :development
|
63
|
+
prerelease: false
|
64
|
+
version_requirements: !ruby/object:Gem::Requirement
|
65
|
+
requirements:
|
66
|
+
- - ">="
|
67
|
+
- !ruby/object:Gem::Version
|
68
|
+
version: '0'
|
69
|
+
- !ruby/object:Gem::Dependency
|
70
|
+
name: commander
|
71
|
+
requirement: !ruby/object:Gem::Requirement
|
72
|
+
requirements:
|
73
|
+
- - ">="
|
74
|
+
- !ruby/object:Gem::Version
|
75
|
+
version: '0'
|
76
|
+
type: :runtime
|
77
|
+
prerelease: false
|
78
|
+
version_requirements: !ruby/object:Gem::Requirement
|
79
|
+
requirements:
|
80
|
+
- - ">="
|
81
|
+
- !ruby/object:Gem::Version
|
82
|
+
version: '0'
|
83
|
+
- !ruby/object:Gem::Dependency
|
84
|
+
name: tty-prompt
|
85
|
+
requirement: !ruby/object:Gem::Requirement
|
86
|
+
requirements:
|
87
|
+
- - ">="
|
88
|
+
- !ruby/object:Gem::Version
|
89
|
+
version: '0'
|
90
|
+
type: :runtime
|
91
|
+
prerelease: false
|
92
|
+
version_requirements: !ruby/object:Gem::Requirement
|
93
|
+
requirements:
|
94
|
+
- - ">="
|
95
|
+
- !ruby/object:Gem::Version
|
96
|
+
version: '0'
|
97
|
+
- !ruby/object:Gem::Dependency
|
98
|
+
name: tty-which
|
99
|
+
requirement: !ruby/object:Gem::Requirement
|
100
|
+
requirements:
|
101
|
+
- - "~>"
|
102
|
+
- !ruby/object:Gem::Version
|
103
|
+
version: '0.2'
|
104
|
+
type: :runtime
|
105
|
+
prerelease: false
|
106
|
+
version_requirements: !ruby/object:Gem::Requirement
|
107
|
+
requirements:
|
108
|
+
- - "~>"
|
109
|
+
- !ruby/object:Gem::Version
|
110
|
+
version: '0.2'
|
111
|
+
description: This script will help you bootstrap your shiny new laptop
|
112
|
+
email:
|
113
|
+
- stjepan.hadjic@infinum.co
|
114
|
+
executables:
|
115
|
+
- infinum_setup
|
116
|
+
extensions: []
|
117
|
+
extra_rdoc_files: []
|
118
|
+
files:
|
119
|
+
- ".gitignore"
|
120
|
+
- ".rspec"
|
121
|
+
- ".travis.yml"
|
122
|
+
- CODE_OF_CONDUCT.md
|
123
|
+
- Gemfile
|
124
|
+
- LICENSE.txt
|
125
|
+
- README.md
|
126
|
+
- Rakefile
|
127
|
+
- bin/console
|
128
|
+
- bin/setup
|
129
|
+
- exe/infinum_setup
|
130
|
+
- infinum_setup.gemspec
|
131
|
+
- lib/infinum_setup.rb
|
132
|
+
- lib/infinum_setup/base.rb
|
133
|
+
- lib/infinum_setup/general.rb
|
134
|
+
- lib/infinum_setup/install.rb
|
135
|
+
- lib/infinum_setup/team.rb
|
136
|
+
- lib/infinum_setup/version.rb
|
137
|
+
- programs/android.yml
|
138
|
+
- programs/design.yml
|
139
|
+
- programs/general.yml
|
140
|
+
- programs/ios.yml
|
141
|
+
- programs/javascript.yml
|
142
|
+
- programs/pm.yml
|
143
|
+
- programs/rails.yml
|
144
|
+
- scripts/ruby.sh
|
145
|
+
homepage: https://github.com/infinum/infinum_setup
|
146
|
+
licenses:
|
147
|
+
- MIT
|
148
|
+
metadata:
|
149
|
+
allowed_push_host: https://rubygems.org
|
150
|
+
post_install_message:
|
151
|
+
rdoc_options: []
|
152
|
+
require_paths:
|
153
|
+
- lib
|
154
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
155
|
+
requirements:
|
156
|
+
- - ">="
|
157
|
+
- !ruby/object:Gem::Version
|
158
|
+
version: '0'
|
159
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
160
|
+
requirements:
|
161
|
+
- - ">="
|
162
|
+
- !ruby/object:Gem::Version
|
163
|
+
version: '0'
|
164
|
+
requirements: []
|
165
|
+
rubyforge_project:
|
166
|
+
rubygems_version: 2.5.1
|
167
|
+
signing_key:
|
168
|
+
specification_version: 4
|
169
|
+
summary: This script will help you bootstrap your shiny new laptop
|
170
|
+
test_files: []
|