Project

grache

0.0
No commit activity in last 3 years
No release in over 3 years
Great Ruby Cache for ruby gems
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

>= 0.7.8, ~> 0.7
>= 10.3.1, ~> 10.3
>= 0.2.0, ~> 0.2
>= 3.1.7, ~> 3.1
>= 0.27.0, ~> 0.27
>= 0.9.1, ~> 0.9
~> 0.8.7.3
>= 4.11.0, ~> 4.10

Runtime

>= 4.1.0, ~> 4.1
~> 1.45
~> 1.7.8
>= 1.1.5, ~> 1.1
>= 2.7.0, ~> 2.7
>= 2.12.2, ~> 2.12
>= 1.6.21, ~> 1.6
>= 0.6.9, ~> 0.7.0
>= 1.8.1, ~> 1.8
>= 1.10.0, ~> 1.10
>= 1.0.4, ~> 1.0
>= 1.0.1, ~> 1.0
~> 0.9.12.6
>= 1.1.0, ~> 1.1
>= 1.4.5, ~> 1.4
 Project Readme

grache

Great Ruby Cache for gems

Status

GitHub version

Getting started

Is simple as typing following command:

gem install grache

We should get something like this:

tomaskorcak@kx-mac:~/dev/grache-test$ gem install grache
Successfully installed grache-0.0.2
1 gem installed
tomaskorcak@kx-mac:~/dev/grache-test$

Commands

  • grache help
  • grache pack
  • grache pack build
  • grache pack zip
  • grache pack install

grache help

Lets type following:

grache help

And we should get something like this:

tomaskorcak@kx-mac:~/dev/grache-test$ grache help
NAME
    grache - Graces - Cache for ruby gems.

SYNOPSIS
    grache [global options] command [command options] [arguments...]

VERSION
    0.0.2

GLOBAL OPTIONS
    --help    - Show this message
    --version - Display the program version

COMMANDS
    help    - Shows a list of commands or help for one command
    pack    - Manage your pack
    version - Show version
tomaskorcak@kx-mac:~/dev/grache-test$

grache pack

As title suggest grache pack is fundamental command of grache.

Lets type followin:

grache pack

And we should get sometthing like this:

tomaskorcak@kx-mac:~/dev/grache-test$ grache pack
error: Command 'pack' requires a subcommand build,install,zip

NAME
    pack - Manage your pack

SYNOPSIS
    grache [global options] pack build
    grache [global options] pack install
    grache [global options] pack zip

COMMANDS
    build   - Build pack
    install - Install pack
    zip     - Zip created pack
tomaskorcak@kx-mac:~/dev/grache-test$

grache pack build

Builds the vendor/cache for deployment.

Lets type following:

grache pack build

And we should get sometthing like this:

tomaskorcak@kx-mac:~/dev/grache-test$ grache pack build
Packing /Users/tomaskorcak/dev/grache-test
Gemfile located at /Users/tomaskorcak/dev/grache-test/Gemfile
Deleting cache /Users/tomaskorcak/dev/grache-test/vendor
bundle pack --gemfile=/Users/tomaskorcak/dev/grache-test/Gemfile --all
Using ...
Using json 1.8.2
Using gooddata 0.6.13
Using gooddata_connectors_base 0.0.1 from https://github.com/gooddata/gooddata_connectors_base.git (at s3)
Using gooddata_connectors_downloader_salesforce 0.0.1 from https://github.com/gooddata/gooddata_connectors_downloader_salesforce (at gse)
Using gooddata_connectors_metadata 0.0.1 from https://github.com/gooddata/gooddata_connectors_metadata.git (at bds_implementation)
Bundle complete! 4 Gemfile dependencies, 40 gems now installed.
Use `bundle show [gemname]` to see where a bundled gem is installed.
Updating files in vendor/cache
  * i18n-0.7.0.gem
  * ....
  * gooddata-0.6.13.gem
tomaskorcak@kx-mac:~/dev/grache-test$

grache pack zip

Zips vendor/cache for deployment to S3.

Lets type following:

grache pack zip

And we should get sometthing like this:

tomaskorcak@kx-mac:~/dev/grache-test$ grache pack zip
Zipping pack: {
  "dir": "."
}
Zipping /Users/tomaskorcak/dev/grache-test
Deflating /Users/tomaskorcak/dev/grache-test/vendor/cache
Deflating /Users/tomaskorcak/dev/grache-test/vendor/cache/activesupport-4.2.0.gem
Deflating /Users/tomaskorcak/dev/grache-test/vendor/cache/gooddata-0.6.13.gem
Deflating ...
Deflating /Users/tomaskorcak/dev/grache-test/vendor/cache/gooddata_connectors_metadata-86f8943cf8f0/spec/unit/types/decimal_spec.rb
Deflating /Users/tomaskorcak/dev/grache-test/vendor/cache/gooddata_connectors_metadata-86f8943cf8f0/spec/unit/types/integer_spec.rb
Deflating /Users/tomaskorcak/dev/grache-test/vendor/cache/gooddata_connectors_metadata-86f8943cf8f0/spec/unit/types/string_spec.rb
Deflating ...
Deflating /Users/tomaskorcak/dev/grache-test/vendor/cache/xml-simple-1.1.4.gem
Created grache-21ca1e50ee980a3a987f52548d5a7f0dd5bc977187eda1d130774827d222925b.zip

grache pack install

Downloads (and unpacks) vendor/cache from S3.

Lets type following:

grache pack install

And we should get sometthing like this:

tomaskorcak@kx-mac:~/dev/grache-test$ grache pack install
Installing pack: {
  "dir": "."
}
Creating /Users/tomaskorcak/dev/grache-test/vendor/
Looking for https://gdc-ms-grache.s3.amazonaws.com/grache-21ca1e50ee980a3a987f52548d5a7f0dd5bc977187eda1d130774827d222925b.zip
Extracting cache/
Extracting cache/activesupport-4.2.0.gem
Extracting cache/gooddata-0.6.13.gem
Extracting ...
Extracting cache/gooddata_connectors_metadata-86f8943cf8f0/spec/unit/types/decimal_spec.rb
Extracting cache/gooddata_connectors_metadata-86f8943cf8f0/spec/unit/types/integer_spec.rb
Extracting cache/gooddata_connectors_metadata-86f8943cf8f0/spec/unit/types/string_spec.rb
Extracting ...
Extracting cache/xml-simple-1.1.4.gem
Removing old grache-21ca1e50ee980a3a987f52548d5a7f0dd5bc977187eda1d130774827d222925b.zip
tomaskorcak@kx-mac:~/dev/grache-test$

References

Travis CI Bundler Caching