Sha256: a2c28d35f6ec29e651faaa682a243e706e3e277fb85005ab896446072947249c

Contents?: true

Size: 1.13 KB

Versions: 11

Compression:

Stored size: 1.13 KB

Contents

- build:       source
  default:     all
  description: Generate a sample Ruby source file

- properties:
    name:        source.rb
    description: This script will generate a sample Ruby source file.

- target:      welcome
  description: Print information message
  script:
  - print: :description

- target:      prompt
  depends:     welcome
  description: Prompt for project information
  script:
  - print: "Please answer following questions to generate the project:"
  - prompt:
      message: "What is the source file name?"
      default: :name
      property: name

- target:      generate
  depends:     prompt
  description: Generate source
  script:
  - print: "Generating source..."
  - erb:
      src:  "#{base}/source/source.rb"
      dest: "#{here}/#{name}"
  - if: "RUBY_PLATFORM.split('-')[1] != 'mswin32'"
    then:
    - chmod: { files: "#{here}/#{name}", mode: 0755 }

- target:      customization
  depends:     generate
  description: Print information about project customization
  script:
  - print: Source file '#{name}' has been generated in this directory.

- target:  all
  depends: [welcome, prompt, generate, customization]

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
bee-0.12.2 egg/source.yml
bee-0.12.1 egg/source.yml
bee-0.12.0 egg/source.yml
bee-0.11.4 egg/source.yml
bee-0.11.3 egg/source.yml
bee-0.11.2 egg/source.yml
bee-0.11.1 egg/source.yml
bee-0.11.0 egg/source.yml
bee-0.10.2 egg/source.yml
bee-0.10.1 egg/source.yml
bee-0.10.0 egg/source.yml