Sha256: 9aa7dcaac0732b9e0497cd19d61f1e79da7c21404b757fe23110504694813f13

Contents?: true

Size: 599 Bytes

Versions: 57

Compression:

Stored size: 599 Bytes

Contents

Standup.script :local do
  self.description = 'Put specified script into project configuration'
  
  def run
    variants = Standup.scripts.keys.sort.select{|script_name| File.exists? File.expand_path("#{script_name}.rb", Standup.gem_scripts_path)}
    script_name = argument '<script name>', 'script name', variants
    
    FileUtils.mkdir_p(Standup.local_scripts_path)
    [script_name, "#{script_name}.rb"].each do |path|
      path = File.expand_path(path, Standup.gem_scripts_path)
      if File.exists? path
        FileUtils.cp_r path, Standup.local_scripts_path
      end
    end
  end
end

Version data entries

57 entries across 57 versions & 1 rubygems

Version Path
standup-0.6.9 scripts/localize.rb
standup-0.6.8 scripts/localize.rb
standup-0.6.7 scripts/localize.rb
standup-0.6.6 scripts/localize.rb
standup-0.6.5 scripts/localize.rb
standup-0.6.4 scripts/localize.rb
standup-0.6.3 scripts/localize.rb
standup-0.6.2 scripts/localize.rb
standup-0.6.1 scripts/localize.rb
standup-0.6.0 scripts/localize.rb
standup-0.5.14 scripts/localize.rb
standup-0.5.13 scripts/localize.rb
standup-0.5.11 scripts/localize.rb
standup-0.5.10 scripts/localize.rb
standup-0.5.9 scripts/localize.rb
standup-0.5.8 scripts/localize.rb
standup-0.5.7 scripts/localize.rb
standup-0.5.6 scripts/localize.rb
standup-0.5.5 scripts/localize.rb
standup-0.5.4 scripts/localize.rb