Sha256: fd14b87d8acb0a682952d90fd90dc4b4795f67a7eea579402a2a7b118ee166ed
Contents?: true
Size: 1.17 KB
Versions: 1
Compression:
Stored size: 1.17 KB
Contents
#!/usr/bin/env ruby INTRO =<<_PLAIN_ # name is unique! # scm(svn).sanitize_path_prefix split with '|' _PLAIN_ SVN =<<_YAML_ scm: tool: svn repository: /path/to/repository sanitize_path_prefix: /repos/projects/release/|/some/path/projects/trunk/ remote_version_file: ftproot/path/to/version.txt # username: svn_account # password: svn_password _YAML_ GIT =<<_YAML_ scm: tool: git branch: master repository: /path/to/repository remote_version_file: ftproot/path/to/version.txt _YAML_ FTP =<<_YAML_ ftp: host: www.examples.com port: 21 user: username password: password passive: false verbose: true name: rottenegg _YAML_ AUTH =<<_AUTH_ user: name password: password _AUTH_ case ARGV.join when "svn" section = "config" File.open("#{ENV["PWD"]}/#{section}.yml", "w") { |f| f.write(INTRO + SVN + FTP) } when "git" section = "config" File.open("#{ENV["PWD"]}/#{section}.yml", "w") { |f| f.write(INTRO + GIT + FTP) } when "auth" section = "auth" File.open("#{ENV["PWD"]}/#{section}.yml", "w") { |f| f.write AUTH } else abort "'#{__FILE__}' need one of [git|svn|auth]" end puts "#{ENV["PWD"]}/#{section}.yml generated!"
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
rottenegg-1.2.5.beta | bin/rottenegg_gen |