escualo 1.0.1 → 1.0.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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 6417e0fb1dfd74df4ef3b7e5233315a16caa1544
4
- data.tar.gz: c51650e52e78d735151e6babe0f1c7e0184a605c
3
+ metadata.gz: cb5a4cd7987f7f538d8d6dbb31efe78bdda4e58a
4
+ data.tar.gz: ac12b60c463fbb7cc2412b740367f6277f19f915
5
5
  SHA512:
6
- metadata.gz: 078af849118e0ad2ebfa9434694d6b97eab7eec4ba82a6324d83a071d55adb5b81acf4c5a18bcad35c160bf5494804c3f4e6e3b4403772226710e520ce4408d1
7
- data.tar.gz: 27ec0752d8bea6e3cea4fd15a64b9ea2f53a56359032b7bfcf8f732383089dc51bb1cf73bbb5e395eb6715c45a7528866b29e3f054527d21784ab4f0d2ef9d32
6
+ metadata.gz: c454b54e8282ba622911aa03bc5176ce1b355b89828005c8099b4749029498e24852557a02cdc42e04196eed07b9797cbc53acec76b81338ec51d75d920de877
7
+ data.tar.gz: 31f36d47f87e163b3996f90180de12c2b5e1fdb28e036bcae25ff125f89f9ce8dd43e3b7141bf90a254dde2d9bcc4f7221fcb383d64362a94517c1c5cba2eaae
data/bin/escualo CHANGED
@@ -26,6 +26,7 @@ end
26
26
 
27
27
  require_relative '../lib/commands/globals'
28
28
 
29
+ require_relative '../lib/commands/base'
29
30
  require_relative '../lib/commands/bootstrap'
30
31
  require_relative '../lib/commands/deploy'
31
32
  require_relative '../lib/commands/script'
@@ -0,0 +1,8 @@
1
+ command 'base' do |c|
2
+ c.syntax = 'escualo base'
3
+ c.description = 'Install essential libraries'
4
+
5
+ c.ssh_action do |_args, options, ssh|
6
+ Escualo::Base.install_base ssh, options
7
+ end
8
+ end
@@ -10,20 +10,20 @@ command 'bootstrap' do |c|
10
10
  options.default env: 'production'
11
11
 
12
12
  do_unless Escualo::Bootstrap.check(ssh), 'This host has already been bootstrapped', options do
13
+
14
+ step 'Enabling swap...' do
15
+ Escualo::Bootstrap.enable_swap ssh
16
+ end if options.swap
17
+
13
18
  step 'Configuring variables...' do
14
19
  Escualo::Env.setup ssh
15
20
  Escualo::Env.set_builtins ssh, options
16
21
  end
17
22
 
18
- step 'Installing base software...' do
19
- Escualo::Bootstrap.install_base ssh, options
23
+ step 'Installing Ruby...' do
20
24
  Escualo::Bootstrap.install_ruby ssh, options
21
25
  end
22
26
 
23
- step 'Enabling swap...' do
24
- Escualo::Bootstrap.enable_swap ssh
25
- end if options.swap
26
-
27
27
  step 'Installing gems...' do
28
28
  Escualo::Gems.install ssh, options
29
29
  end
@@ -0,0 +1,20 @@
1
+ module Escualo
2
+ module Base
3
+ def self.install_base(ssh, options)
4
+ ssh.shell.perform! %q{
5
+ apt-get install -y \
6
+ autoconf \
7
+ bison \
8
+ build-essential \
9
+ libreadline6 \
10
+ libreadline6-dev \
11
+ curl \
12
+ git \
13
+ libssl-dev \
14
+ zlib1g \
15
+ zlib1g-dev \
16
+ libreadline-dev
17
+ }, options
18
+ end
19
+ end
20
+ end
@@ -1,22 +1,5 @@
1
1
  module Escualo
2
2
  module Bootstrap
3
- def self.install_base(ssh, options)
4
- ssh.shell.perform! %q{
5
- apt-get install -y \
6
- autoconf \
7
- bison \
8
- build-essential \
9
- libreadline6 \
10
- libreadline6-dev \
11
- curl \
12
- git \
13
- libssl-dev \
14
- zlib1g \
15
- zlib1g-dev \
16
- libreadline-dev
17
- }, options
18
- end
19
-
20
3
  def self.install_ruby(ssh, options)
21
4
  ssh.shell.perform! 'apt-get purge libruby* -y', options
22
5
  if options.with_rbenv
data/lib/escualo/gems.rb CHANGED
@@ -1,6 +1,6 @@
1
1
  module Escualo::Gems
2
2
  def self.install(ssh, options)
3
- ssh.shell.perform! 'gem install bundler && gem install escualo', options
3
+ ssh.shell.perform! "gem install bundler && gem install escualo -v #{Escualo::VERSION}", options
4
4
  end
5
5
 
6
6
  def self.present?(ssh)
@@ -1,4 +1,4 @@
1
1
  module Escualo
2
- VERSION = '1.0.1'
2
+ VERSION = '1.0.2'
3
3
  BASE_VERSION = '3.2'
4
4
  end
data/lib/escualo.rb CHANGED
@@ -20,6 +20,7 @@ require_relative './escualo/version'
20
20
  require_relative './escualo/env'
21
21
  require_relative './escualo/ppa'
22
22
  require_relative './escualo/gems'
23
+ require_relative './escualo/base'
23
24
  require_relative './escualo/bootstrap'
24
25
  require_relative './escualo/script'
25
26
  require_relative './escualo/plugin'
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: escualo
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.1
4
+ version: 1.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Franco Leonardo Bulgarelli
@@ -135,6 +135,7 @@ files:
135
135
  - bin/escualo
136
136
  - lib/command.rb
137
137
  - lib/commands/artifact.rb
138
+ - lib/commands/base.rb
138
139
  - lib/commands/bootstrap.rb
139
140
  - lib/commands/deploy.rb
140
141
  - lib/commands/env.rb
@@ -146,6 +147,7 @@ files:
146
147
  - lib/commands/upload.rb
147
148
  - lib/escualo.rb
148
149
  - lib/escualo/artifact.rb
150
+ - lib/escualo/base.rb
149
151
  - lib/escualo/bootstrap.rb
150
152
  - lib/escualo/env.rb
151
153
  - lib/escualo/gems.rb