buildable 2.1.0 → 2.1.1

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: 1eebad5c44cf79863ca232963746922ca0974ba1
4
- data.tar.gz: 6a025e8b2bba447260a2ef4d748245c4e2382d17
3
+ metadata.gz: ccb5fb6289db271474c441eb238feef89d060898
4
+ data.tar.gz: 86169de2c08e491b93fc846ec5510680eb219924
5
5
  SHA512:
6
- metadata.gz: 4dfc231b5712424a32a8357ff1d25aab593cf15426378c8e768b46cc822621dbc0e4f530d3d17ff43c5ce2efdf23d142d366f4f3b25fe9bd4751c83927eecfdb
7
- data.tar.gz: 323c7fe0c85d9bc3700cf13ec1faf9492438d3c60935491cdacd9e55a09c7811edaeee002ad11649baedb9166b7d1fb3f5573d7723ae7bce839af87dce33c8ef
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' => 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
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' => '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} ."
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]
@@ -1,3 +1,3 @@
1
1
  module Buildable
2
- VERSION = "2.1.0"
2
+ VERSION = "2.1.1"
3
3
  end
@@ -1,8 +1,9 @@
1
- project_name: awesome_app
1
+ project_name: project_name
2
2
  description: Most awesome project in the world
3
- organization: organization name
4
- app_user: application_user
5
- root_dir: application_root_path
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.0
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-13 00:00:00.000000000 Z
11
+ date: 2016-09-21 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rake