14
Carton について何か話す 2013/02/27 CartonConference @ikasam_a 13227日水曜日

Carton について何か話す

Embed Size (px)

DESCRIPTION

compare w/ Bundler

Citation preview

Page 1: Carton について何か話す

Cartonについて何か話す

2013/02/27 CartonConference@ikasam_a

13年2月27日水曜日

Page 2: Carton について何か話す

Recent Status

• cpanm 1.6000 released

• carton v0.9.10 released

• miyagawa++

13年2月27日水曜日

Page 3: Carton について何か話す

Carton はBundler を Perl に移植したもの

13年2月27日水曜日

Page 4: Carton について何か話す

今日のネタ

• http://gembundler.com/v1.2/commands.html

• http://gembundler.com/v1.2/gemfile.html

13年2月27日水曜日

Page 5: Carton について何か話す

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日水曜日

Page 6: Carton について何か話す

bundle install

• carton install

• --deployment

• --path=<path>

• create Gemfile.lock (carton.lock)

• --local (--cache)

• <system>/gems/ (./local/)

13年2月27日水曜日

Page 7: Carton について何か話す

bundle update

• carton update

• bundle update <gems>

13年2月27日水曜日

Page 8: Carton について何か話す

bundle package

• carton bundle

• install (lock) and copy

• save to vendor/cache (local/cache)

13年2月27日水曜日

Page 9: Carton について何か話す

bundle exec

• carton exec

• run <command>

• -I<lib>

• -- <command>

13年2月27日水曜日

Page 10: Carton について何か話す

bundle config

• 使ったこと無いから知らない

• build option とか指定できるらしい

by あんちぽさん

• 要るの?

13年2月27日水曜日

Page 11: Carton について何か話す

Gemfile

• source <repository>

• gem <name>, <version>

• gem <name>,

:git => <url>, :branch => <branch>

• gem <name>, :path => <path>

13年2月27日水曜日

Page 12: Carton について何か話す

cpanfile

• use CPAN mirror ???

• requires “name”, “version”;

• requires “name”,

via => “git-url”, branch => “branch”;

• requires “name”, via => “path”;

13年2月27日水曜日

Page 13: Carton について何か話す

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日水曜日

Page 14: Carton について何か話す

おわりに

• ちなみに僕の普段利用バージョン

• cpanm (App::cpanminus) version 1.5019

• carton v0.9.4

• bundle 実装して使い出してそのまま

13年2月27日水曜日