bricky 0.0.23 → 0.0.24

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,15 +1,15 @@
1
1
  ---
2
2
  !binary "U0hBMQ==":
3
3
  metadata.gz: !binary |-
4
- NTIzNzNlMGY3ODExMTY2ODA1NzE1OTM2MmEzM2FhZjY0NzY0NTI2OQ==
4
+ MGI5MzYyZGQ1ZTg0NmRlMTlkMjc3OGI5Y2QwYzI4OTIyNjU0OTg1NQ==
5
5
  data.tar.gz: !binary |-
6
- ZTdhYzlhZDhkM2JjMDIwMzVkM2UwNDNkOGI2YzEyN2NmYTEzMGVlZg==
6
+ MmY0OGNlMTdlZTkwNDFkZDM1ZmI3Njg2OTkzZTk2OGFkZmZjNTE3Ng==
7
7
  SHA512:
8
8
  metadata.gz: !binary |-
9
- NWU5YjZlYWQ0MzdmNzI3MDVlMjk3OWM2NTNkYWE0MTAyODFlZTVlNTkxOTNh
10
- NTUyNmJkN2EwNTdiZTgyNzAxZTYxMDMzODljY2ZmZTFiYjI2NzhhNmFlY2E5
11
- MWMxZTA3MzJhY2JhOWEwMDBmN2Q1MzQ3YzYxOTMxMmQ3ZGUzMWM=
9
+ ZDhmM2M2OTY2MmYzY2ZiZmVkZjVmMDBiNzdkOTllZjgyMmM3MDEwZjkwZGI2
10
+ M2E3NGRlYTcyYTlmNDE1OGVlZDkzZDY2YTZmZmRlNGZkMjViNTI5M2EzMmRi
11
+ OTMwMDZiNjY1MDM2YzMyMzYxNzM4ZWFiNDZjY2JiZmFmZjRlOTg=
12
12
  data.tar.gz: !binary |-
13
- NTBiM2FiYjdkOGM5Y2IzM2RjNDI2NzMwN2ZmYzY4YzEyMDJhZjUwNzVmMGJh
14
- MjRmODZlZGI5MWQ5MGEwZGQwZjc2MmEzNTczZTM3MmYzMTRjMjJmYjRkYTcw
15
- MmMxYmEyYjJiYzNmODU2NTU5MjI2NTRjMTJkZDU3MzMxZTZhZGQ=
13
+ MDA5MmI4NTk3ZjI2YTJlMjJlMmIwNjUzNTgyMjVjMWM0Mzg1OGIxMmM3YTAy
14
+ Njg4MmQzNGRjOWQzZTg1ZDdiYzI2ZDg2OGRiZmQyMWJlOTYyNDQ2NDQ3MDll
15
+ NjkzZDc5MWZhOTc3NzRjOWExM2YxYjhmMmFhMGM4N2ZlMjQwZjQ=
@@ -0,0 +1,16 @@
1
+ #!/bin/bash -e
2
+
3
+ . $BRICKS_HOME/suexec
4
+
5
+ rails() {
6
+ if [[ $BRICKS_RAILS_ASSETS_PRECOMPILE == "true" ]]
7
+ then
8
+ info 'Rails, assets precompile!'
9
+
10
+ pushd /opt/workspace/source
11
+ bundle exec rake assets:clean assets:precompile
12
+ popd
13
+ fi
14
+ }
15
+
16
+ suexec rails
@@ -0,0 +1,34 @@
1
+ #!/bin/bash -e
2
+
3
+ . $BRICKS_HOME/suexec
4
+
5
+ version() {
6
+ info 'Processing version file'
7
+ pushd /opt/workspace/source
8
+ last_tag=$(git describe --tags)
9
+ commit=$(git log -1 --pretty=tformat:'%H' $last_tag)
10
+ author=$(git log -1 --pretty=tformat:'%an' $last_tag)
11
+ message=$(git log -1 --pretty=tformat:'%s' $last_tag)
12
+ tag_date=$(git log -1 --pretty=tformat:'%ad' $last_tag)
13
+
14
+ echo "tag = $last_tag"
15
+ echo "date = $tag_date"
16
+ echo "author = $author"
17
+ echo "commit = $commit"
18
+ echo "message = $message"
19
+
20
+ generated_version="
21
+ {
22
+ \"tag\": \"$last_tag\",
23
+ \"commit\": \"$commit\",
24
+ \"author\": \"$autor\",
25
+ \"message\": \"$author\",
26
+ \"tag_date\": \"$tag_date\"
27
+ }
28
+ "
29
+
30
+ echo $generated_version > $BRICKS_VERSION_OUTPUT
31
+ popd
32
+ }
33
+
34
+ suexec version
@@ -0,0 +1,17 @@
1
+ module Bricky
2
+ module Bricks
3
+ class Rails < Base
4
+ def arguments
5
+ ["-v #{bricks_path}/rails:/bricks/rails"]
6
+ end
7
+
8
+ def entrypoint
9
+ "/bricks/rails/builder"
10
+ end
11
+
12
+ def environments
13
+ ["-e BRICKS_RAILS_ASSETS_PRECOMPILE='#{config.fetch('assets_precompile', false)}'"]
14
+ end
15
+ end
16
+ end
17
+ end
@@ -0,0 +1,17 @@
1
+ module Bricky
2
+ module Bricks
3
+ class Version < Base
4
+ def arguments
5
+ ["-v #{bricks_path}/version:/bricks/version"]
6
+ end
7
+
8
+ def entrypoint
9
+ "/bricks/version/builder"
10
+ end
11
+
12
+ def environments
13
+ ["-e BRICKS_VERSION_OUTPUT='#{config['output']}'"]
14
+ end
15
+ end
16
+ end
17
+ end
data/lib/bricky/bricks.rb CHANGED
@@ -2,9 +2,11 @@ require "bricky/bricks/base"
2
2
 
3
3
  require "bricky/bricks/helper"
4
4
  require "bricky/bricks/ruby"
5
+ require "bricky/bricks/rails"
5
6
  require "bricky/bricks/bundle"
6
7
  require "bricky/bricks/debian"
7
8
  require "bricky/bricks/mounts"
9
+ require "bricky/bricks/version"
8
10
 
9
11
  module Bricky
10
12
  module Bricks
@@ -1,3 +1,3 @@
1
1
  module Bricky
2
- VERSION = "0.0.23"
2
+ VERSION = "0.0.24"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: bricky
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.23
4
+ version: 0.0.24
5
5
  platform: ruby
6
6
  authors:
7
7
  - andrerocker
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-07-28 00:00:00.000000000 Z
11
+ date: 2015-07-31 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -96,6 +96,8 @@ files:
96
96
  - etc/bricks/helper/start
97
97
  - etc/bricks/helper/suexec
98
98
  - etc/bricks/mounts/builder
99
+ - etc/bricks/rails/builder
100
+ - etc/bricks/version/builder
99
101
  - etc/hacker/id_container/Dockerfile
100
102
  - etc/templates/Brickyfile
101
103
  - etc/templates/bricky/bricky.yml
@@ -107,7 +109,9 @@ files:
107
109
  - lib/bricky/bricks/debian.rb
108
110
  - lib/bricky/bricks/helper.rb
109
111
  - lib/bricky/bricks/mounts.rb
112
+ - lib/bricky/bricks/rails.rb
110
113
  - lib/bricky/bricks/ruby.rb
114
+ - lib/bricky/bricks/version.rb
111
115
  - lib/bricky/command.rb
112
116
  - lib/bricky/commands/base.rb
113
117
  - lib/bricky/commands/bootstrap.rb