buildable 2.1.0 → 2.1.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/buildable/recipes/build.rb +20 -17
- data/lib/buildable/version.rb +1 -1
- data/templates/.buildable.yml.erb +5 -4
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ccb5fb6289db271474c441eb238feef89d060898
|
4
|
+
data.tar.gz: 86169de2c08e491b93fc846ec5510680eb219924
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2770050105af81ce37735b2273197262f583927f8fca4cd00f17aa7643a0417e0cc6e5e14acbf487109f956c2b2708fb1c880f82d833aebab450326a06397d70
|
7
|
+
data.tar.gz: e40c2379aaefbd945bf2554d82d0c586a6cfa50fe9e6329995c323d3f7e30191f1c0ceb4160c9c3e4c6f6c9a4929b447be8914c0944d96e96519e15c10ae0ecb
|
@@ -29,13 +29,13 @@ module Buildable::Recipe
|
|
29
29
|
# To make the initd script i'm using foreman's bluepill export with custom template
|
30
30
|
puts "* Generating init scripts"
|
31
31
|
params = {
|
32
|
-
'--user'
|
33
|
-
'--env'
|
34
|
-
'--app'
|
35
|
-
'--log'
|
36
|
-
'--template'
|
37
|
-
'-f'
|
38
|
-
'-d'
|
32
|
+
'--user': Buildable.config.app_user,
|
33
|
+
'--env': 'production.env',
|
34
|
+
'--app': Buildable.config.project_name.downcase,
|
35
|
+
'--log': '/tmp',
|
36
|
+
'--template': Buildable.foreman_templates,
|
37
|
+
'-f': 'Procfile',
|
38
|
+
'-d': Buildable.config.root_dir
|
39
39
|
}
|
40
40
|
Buildable::Shell.do "foreman export bluepill #{Buildable.initd_folder}", params
|
41
41
|
raise "Can't generate init scripts" unless Buildable::Shell.success?
|
@@ -51,18 +51,21 @@ module Buildable::Recipe
|
|
51
51
|
raise "Can't define build version, please check git describe" unless Buildable::Shell.success?
|
52
52
|
|
53
53
|
params = {
|
54
|
-
'-s'
|
55
|
-
'-t'
|
56
|
-
'--name'
|
57
|
-
'--version'
|
58
|
-
'--architecture'
|
59
|
-
'--package'
|
60
|
-
'--prefix'
|
61
|
-
'--description'
|
62
|
-
'--force'
|
63
|
-
'-C'
|
54
|
+
'-s': 'dir',
|
55
|
+
'-t': 'deb',
|
56
|
+
'--name': Buildable.package_name,
|
57
|
+
'--version': version,
|
58
|
+
'--architecture': 'all',
|
59
|
+
'--package': './pkg',
|
60
|
+
'--prefix': '/',
|
61
|
+
'--description': Buildable.config.description.inspect,
|
62
|
+
'--force': nil,
|
63
|
+
'-C': "#{Buildable::BUILD_ROOT_DIR} ."
|
64
64
|
}
|
65
65
|
|
66
|
+
params['--deb-user'] = Buildable.config.app_user if Buildable.config.app_user
|
67
|
+
params['--deb-group'] = Buildable.config.app_group if Buildable.config.app_group
|
68
|
+
|
66
69
|
result = Buildable::Shell.do_quiet 'fpm', params
|
67
70
|
raise "Can't create package, error:\n#{result}" unless Buildable::Shell.success?
|
68
71
|
package_name = result.match(/:path=>"\.\/pkg\/([^"]*)/)[1]
|
data/lib/buildable/version.rb
CHANGED
@@ -1,8 +1,9 @@
|
|
1
|
-
project_name:
|
1
|
+
project_name: project_name
|
2
2
|
description: Most awesome project in the world
|
3
|
-
organization:
|
4
|
-
app_user:
|
5
|
-
|
3
|
+
organization: Awesomeness Code Maker
|
4
|
+
app_user: root
|
5
|
+
app_group: root
|
6
|
+
root_dir: /src/project_name
|
6
7
|
files_to_ignore:
|
7
8
|
- .bundle
|
8
9
|
- .git
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: buildable
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.1.
|
4
|
+
version: 2.1.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Alexandre Prates
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-09-
|
11
|
+
date: 2016-09-21 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rake
|