Commit graph

119 commits

Author SHA1 Message Date
Fabio Rehm
1a1b108c23 Disable apt-lists bucket for windows hosts
Fixes GH-106
2014-07-20 22:55:32 -03:00
Fabio Rehm
2b6a07d000 Skip chmod 777 for cache bucket root for smb synced folders
Closes GH-107
2014-07-20 22:14:19 -03:00
Fabio Rehm
871f317ba6 Set composer cache bucket ownership to the configured SSH user 2014-07-20 21:13:35 -03:00
Fabio Rehm
44aa6a6c54 Remove unecessary logic to skip parent folder creation when preparing bucket symlinks 2014-07-20 21:12:28 -03:00
Fabio Rehm
c4db3c1ef4 Use $HOME/.composer/cache as the root for the composer bucket
Fixes GH-89
2014-07-20 21:11:20 -03:00
Fabio Rehm
4265f58985 Remove some TODOs that have been around for way too long and havent been an issue for a long time 2014-07-20 20:52:31 -03:00
Fabio Rehm
82fe74a888 👋 to the deprecated enable_nfs config 2014-07-20 20:36:32 -03:00
Fabio Rehm
5f4a7f1967 Make use of the Vagrantfile configured base box name instead of getting it from the Box object (which might be nil)
Closes GH-86
2014-07-20 20:34:14 -03:00
Fabio Rehm
2cc7b837db Lets keep this code as it is 2014-07-20 20:15:47 -03:00
Fabio Rehm
2b8a281e8a Whitespace 2014-07-20 20:13:36 -03:00
Fabio Rehm
d885c901b9 Up development version 2014-07-20 20:01:28 -03:00
Fabio Rehm
6e160ba4cb v0.7.2 2014-05-08 10:06:51 -03:00
Christian Berendt
f65a1217e9 added missing cloud providers 2014-05-07 20:50:06 +02:00
Fabio Rehm
3997e2abc7 v0.7.1 2014-05-04 23:20:28 -03:00
Gustavo L. de M. Chaves
8ac8d7f6f6 Fix multi generic bucket set up
The previously documented way to specify multiple generic buckets
doesn't work because vagrant-cachier can't enable a bucket type more
than once.

Here we generalize the configs hash that the generic bucket gets making
it possible to specify multiple buckets with a single hash. The
documentation is changed accordingly.

Note that we keep it backwards compatible for single generic bucket
specification.

Issue: https://github.com/fgrehm/vagrant-cachier/issues/99
2014-04-16 09:04:49 -03:00
Fabio Rehm
184330dfb4 v0.7.0 2014-04-06 22:30:11 -03:00
Fabio Rehm
12f121e6e4 Properly fix GH-96 2014-04-06 21:47:24 -03:00
Fabio Rehm
20373aa0d7 Fix GH-96 2014-04-06 21:34:58 -03:00
Fabio Rehm
a4c5f05263 Add missing end to generic bucket and remove capability method [GH-94] 2014-04-06 21:27:06 -03:00
Fabio Rehm
8d48dacf24 Skip bucket auto detection in case the bucket can't be auto detected [GH-94] 2014-04-06 21:25:58 -03:00
Fabio Rehm
ffd6c514dd Merge branch 'generic-bucket' of https://github.com/gnustavo/vagrant-cachier 2014-04-06 21:02:56 -03:00
Fabio Rehm
b28da3ab26 Up version to 0.7.0 as we will add a new feature to the plugin 2014-04-06 21:02:37 -03:00
Gustavo L. de M. Chaves
a63156e482 Implement generic bucket
This bucket must be explicitly enabled and may be useful for users
wanting a generic caching mechanism that they can use directly instead
of via some predefined packaging system.

For instance, this enables one to implement a cache for packages
downloaded via wget or curl.
2014-03-23 22:29:23 -03:00
Fabio Rehm
2faa661546 Up dev version 2014-02-26 22:05:35 -03:00
Fabio Rehm
ede55cdfaf v0.6.0 2014-02-26 22:03:22 -03:00
Fabio Rehm
f968e2d458 Improve check for whether we should warm up the cache or not 2014-02-26 22:03:22 -03:00
Fabio Rehm
2db38dfa6e Remove unused var 2014-02-26 22:03:22 -03:00
Fabio Rehm
b8394f7e6a Ensure apt partial dirs are created _after_ the symlink is in place, otherwise we would not be able to properly detect whether a bucket is empty or not 2014-02-26 22:03:22 -03:00
Fabio Rehm
ac4243d85e Warm up empty buckets with Guest VM files 2014-02-26 22:03:22 -03:00
Fabio Rehm
2a63617e75 Ensure /tmp/vagrant-cache exists before chmodding it 2014-02-26 22:03:22 -03:00
Fabio Rehm
01bef9f407 Fix npm bucket
npm is the only bucket that uses this method
2014-02-26 22:03:22 -03:00
Fabio Rehm
437ba6a4cf ⚠️ Massive refactoring of buckets code ⚠️
Doing this is kinda irresponsible because we don't have any unit testing
in place but I've had enough of copy & pasting things around. Although it
doesn't make the codebase GREAT, I believe it'll reach a _nice_ status :)

Thanks to those changes I realized that skipping configuration of
buckets that have already been configured was easier than I thought and
should be enough to close GH-85 \o/
2014-02-26 22:03:22 -03:00
Fabio Rehm
1c2116f317 Support for offline provisioning of apt-packages by caching /var/lib/apt/lists [GH-84] 2014-02-26 22:03:22 -03:00
Fabio Rehm
1fa46ca2d4 Do not attempt chmods when the plugin is disabled 2014-02-26 22:03:21 -03:00
Fabio Rehm
8d6c7c62da Handle nil value for synced_folder_opts 2014-02-26 22:03:21 -03:00
Fabio Rehm
0dd1b20053 chmod /tmp/vagrant-cache on guest VM to 777 to work around some permission issues as explained on GH-74 2014-02-26 22:03:21 -03:00
Fabio Rehm
59887560ed Trigger plugin activation by setting cache scope [GH-17] 2014-02-26 22:03:21 -03:00
Fabio Rehm
ea88562145 Sorry about that, was testing GH-45 2014-02-26 22:03:21 -03:00
Fabio Rehm
0106155a0f Disable the plugin on machines backed by cloud providers (fix GH-45) 2014-02-26 22:03:21 -03:00
Fabio Rehm
09d65c4a3c Ooops 2014-02-26 22:03:21 -03:00
Fabio Rehm
8a4b911678 Extract plugin hooks and capabilities out to separate files 2014-02-26 22:03:21 -03:00
Fabio Rehm
ca8764f938 Add support for disabling the plugin [GH-72] 2014-02-26 22:03:21 -03:00
Fabio Rehm
6908b94609 Improved logging 2014-02-26 22:03:21 -03:00
Fabio Rehm
2f75ffe692 Clean up InstallBuckets action a bit 2014-02-26 22:03:21 -03:00
Fabio Rehm
0f533a9b30 💣 monkey patch on Builtin::Provision action \o/ (closes GH-60) 2014-02-26 22:03:21 -03:00
Fabio Rehm
aa793367b7 Extract cachier's root bucket directory creation out to a separate action [GH-60] 2014-02-26 22:03:21 -03:00
Fabio Rehm
e01a78138a Blow up if using vagrant < 1.4.0 2014-02-26 22:03:21 -03:00
Fabio Rehm
d823a97cb8 When specifying NFS synced folders we need to use a symbol (fix GH-76) 2014-02-26 22:03:20 -03:00
Fabio Rehm
4ffb47f838 Display enable_nfs deprecation warning only once 2014-02-26 22:03:20 -03:00
Fabio Rehm
e4f6dd69e4 Display a warning using Vagrant's UI in case enable_nfs is set 2014-02-26 22:03:20 -03:00