utopia 1.5.1 → 1.5.2

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 90df23cabd0ea51587310fb49e0b425a0e9f8457
4
- data.tar.gz: 7b9ee09dc427632e6b22185b1dadd5096cc60dab
3
+ metadata.gz: 06bfc0c157a2d299e5fdd106a9019259f3736260
4
+ data.tar.gz: 351eba6309457b94fa01d76e99ba54583ff5e3db
5
5
  SHA512:
6
- metadata.gz: 95beea23a7e15a819a58596a55998eef9641b92bf3c3da1c56877661b00a3fbff2e08564aff43e573c3391df3d465beeb9c7854b57f00371d4ece95513cef56f
7
- data.tar.gz: d19709dab409341a59d288af8ff9a6755a773a92bba4601ef05758709aa7d53e79408cf9909d1a6afc330034a8d2d699179e2572d38368c3a9513cceb899f4e0
6
+ metadata.gz: 32c28e94c6c673e2c0f1b727d991e3457e48bbe3c5b44c440d218220abb92be0d284fa5dd2f6cbda8c5b5bae59135d58d00b0ca716cc5310c854179a83fda93f
7
+ data.tar.gz: dec4cec1acb51120a6dc8b72f35912127225b600a9c70573b6faeede6f98153c50d539ae3152c42992c977b61cda2f863e45e096683c51ff9f1fa444abee85d5
@@ -19,5 +19,5 @@
19
19
  # THE SOFTWARE.
20
20
 
21
21
  module Utopia
22
- VERSION = "1.5.1"
22
+ VERSION = "1.5.2"
23
23
  end
@@ -1,6 +1,6 @@
1
1
  #!/usr/bin/env ruby
2
2
 
3
- # Copyright, 2015, by Samuel G. D. Williams. <http://www.codeotaku.com>
3
+ # Copyright, 2016, by Samuel G. D. Williams. <http://www.codeotaku.com>
4
4
  #
5
5
  # Permission is hereby granted, free of charge, to any person obtaining a copy
6
6
  # of this software and associated documentation files (the "Software"), to deal
@@ -41,12 +41,16 @@ WHOAMI = `whoami`.chomp!
41
41
 
42
42
  # We should find out if we need to use sudo or not:
43
43
  SUDO = if WHOAMI != DEPLOY_USER
44
- ["sudo", "-u", "DEPLOY_USER"]
44
+ ["sudo", "-u", DEPLOY_USER]
45
45
  end
46
46
 
47
+ CommandFailure = Class.new(StandardError)
48
+
47
49
  def sh(command)
48
50
  puts command.join(' ')
49
- system(*command) or abort("Deployment failed!")
51
+ unless system(*command)
52
+ raise CommandFailure.new("#{command.join(' ')} failed with #{$?}!")
53
+ end
50
54
  end
51
55
 
52
56
  def sudo(command)
@@ -56,8 +60,8 @@ end
56
60
  puts "Deploying to #{GIT_WORK_TREE} as #{DEPLOY_USER}:#{DEPLOY_GROUP}..."
57
61
  Dir.chdir(GIT_WORK_TREE) do
58
62
  # Pass on our rights to the files we just uploaded to the deployment user/group:
59
- sh %W{chmod -Rf ug+rwX .}
60
- sh %W{chown -Rf #{DEPLOY_USER}:#{DEPLOY_GROUP} .}
63
+ sh %W{chmod -Rf ug+rwX .} rescue nil
64
+ sh %W{chown -Rf #{DEPLOY_USER}:#{DEPLOY_GROUP} .} rescue nil
61
65
 
62
66
  sudo %W{git checkout -f}
63
67
  sudo %W{git submodule update -i}
data/setup/site/Rakefile CHANGED
@@ -12,7 +12,7 @@ end
12
12
  desc 'Run a server for testing your web application'
13
13
  task :server => :environment do
14
14
  port = ENV.fetch('SERVER_PORT', 9292).to_s
15
- exec('puma', '-p', port)
15
+ exec('puma', '-v', '-p', port)
16
16
  end
17
17
 
18
18
  desc 'Start an interactive console for your web application'
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: utopia
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.5.1
4
+ version: 1.5.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Samuel Williams