0

シェルで Ruby コマンドを使用して、デフォルトのブループリント CSS ファイルを生成する必要があります。ただし、column_width、amount、および gutter パラメーターは通過しません。私は構文を理解していないと思います...

これは正しいです:

ruby compress.rb -o /var/www/css/blueprint/src/ -p 70 15 12

このドキュメントの

joshua-claytons-computer:lib joshuaclayton$ ruby compress.rb -h
Usage: compress.rb [options]
Blueprint Compressor

options
  -o, --output_path=OUTPUT_PATH    Define a different path to output generated CSS files to.
  -n, --namespace=BP_NAMESPACE     Define a namespace prepended to all Blueprint classes (e.g. .your-ns-span-24)
  -p, --project=PROJECT_NAME       If using the settings.yml file, PROJECT_NAME is the project name you want to export
      --column_width=COLUMN_WIDTH  Set a new column width (in pixels) for the output grid
      --gutter_width=GUTTER_WIDTH  Set a new gutter width (in pixels) for the output grid
      --column_count=COLUMN_COUNT  Set a new column count for the output grid
  -h, --help                       Show this help message.
4

1 に答える 1

1

使い方のヘルプに基づいて、単に引数の位置に依存するのではなく、引数名を指定する必要があると思います。また、プロジェクト名を指定せずに -p パラメーターを指定しました。おそらく、次のようなものがうまくいくでしょう:

ruby compress.rb -o /var/www/css/blueprint/src/ --column_width=70 --gutter_width=15 --gutter_width=12
于 2010-02-22T17:16:21.853 に答える