Cartonについて何か話す
2013/02/27 CartonConference@ikasam_a
13年2月27日水曜日
Recent Status
• cpanm 1.6000 released
• carton v0.9.10 released
• miyagawa++
13年2月27日水曜日
Carton はBundler を Perl に移植したもの
13年2月27日水曜日
今日のネタ
• http://gembundler.com/v1.2/commands.html
• http://gembundler.com/v1.2/gemfile.html
13年2月27日水曜日
PRIMARY COMMANDS bundle install(1) bundle-install.1.html Install the gems specified by the Gemfile or Gemfile.lock
bundle update(1) bundle-update.1.html Update dependencies to their latest versions
bundle package(1) bundle-package.1.html Package the .gem files required by your application into the vendor/cache directory
bundle exec(1) bundle-exec.1.html Execute a script in the context of the current bundle
bundle config(1) bundle-config.1.html Specify and read configuration options for bundler
13年2月27日水曜日
bundle install
• carton install
• --deployment
• --path=<path>
• create Gemfile.lock (carton.lock)
• --local (--cache)
• <system>/gems/ (./local/)
13年2月27日水曜日
bundle update
• carton update
• bundle update <gems>
13年2月27日水曜日
bundle package
• carton bundle
• install (lock) and copy
• save to vendor/cache (local/cache)
13年2月27日水曜日
bundle exec
• carton exec
• run <command>
• -I<lib>
• -- <command>
13年2月27日水曜日
bundle config
• 使ったこと無いから知らない
• build option とか指定できるらしい
by あんちぽさん
• 要るの?
13年2月27日水曜日
Gemfile
• source <repository>
• gem <name>, <version>
• gem <name>,
:git => <url>, :branch => <branch>
• gem <name>, :path => <path>
13年2月27日水曜日
cpanfile
• use CPAN mirror ???
• requires “name”, “version”;
• requires “name”,
via => “git-url”, branch => “branch”;
• requires “name”, via => “path”;
13年2月27日水曜日
Carton に多分無いもの
• carton update
• install from git, or local
• cpanm is ready (1.6000)
• do not override “local/cache”
• Bundler: vendor/cache, vendor/bundle
• correct mirror cache w/ local modules
13年2月27日水曜日
おわりに
• ちなみに僕の普段利用バージョン
• cpanm (App::cpanminus) version 1.5019
• carton v0.9.4
• bundle 実装して使い出してそのまま
13年2月27日水曜日