Sha256: 24d3cef54808dc444acbb318555d8274651234c2307dd45a86ac2da2f765d164

Contents?: true

Size: 411 Bytes

Versions: 21

Compression:

Stored size: 411 Bytes

Contents

#!/usr/bin/env ruby

YMDP_ROOT = "."
APP_DIR = "#{YMDP_ROOT}/app"
ASSETS_DIR = "#{APP_DIR}/assets"
VIEWS_DIR = "#{APP_DIR}/views"
JAVASCRIPTS_DIR = "#{APP_DIR}/javascripts"
STYLESHEETS_DIR = "#{APP_DIR}/stylesheets"

@view = ARGV[0]

puts "Destroying #{@view} view..."

system "git rm #{VIEWS_DIR}/#{@view}.html*"

system "git rm #{JAVASCRIPTS_DIR}/#{@view}.js"

system "git rm #{STYLESHEETS_DIR}/#{@view}.css"

Version data entries

21 entries across 16 versions & 1 rubygems

Version Path
ymdp-0.0.8 lib/new_application/script/destroy