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.3.20 scripts/localize.rb
standup-0.3.19 scripts/localize.rb
standup-0.3.18 scripts/localize.rb
standup-0.3.17 scripts/localize.rb
standup-0.3.16 scripts/localize.rb
standup-0.3.15 scripts/localize.rb
standup-0.3.14 scripts/localize.rb
standup-0.3.13 scripts/localize.rb
standup-0.3.12 scripts/localize.rb
standup-0.3.11 scripts/localize.rb
standup-0.3.10 scripts/localize.rb
standup-0.3.9 scripts/localize.rb
standup-0.3.8 scripts/localize.rb
standup-0.3.7 scripts/localize.rb
standup-0.3.6 scripts/localize.rb
standup-0.3.5 scripts/localize.rb
standup-0.3.4 scripts/localize.rb