lib/sproutcore/bundle_installer.rb
# Attemps to remove the bundle installed at the specified location.
Attemps to remove the bundle installed at the specified location.
Attemps to remove the bundle installed at the specified location .
def remove(bundle_name, opts = {})
      install_path = normalize_install_path(bundle_name, opts)
      display_path = display_path_for(install_path)
      if File.exists?(install_path)
        SC.logger.info("Removing #{bundle_name} at #{install_path}") 
        SC.logger.debug(" ~ rm_rf #{install_path}")
        if !opts[:dry_run]
          FileUtils.rm_rf(install_path)
        end
      else
        SC.logger.warn("Bundle #{bundle_name} is not installed at #{display_path}.")
        SC.logger.info(" ~ You can specify an alternate location using the --target option.")
      end
    end
def remove ( bundle_name , opts = { } ) install_path = normalize_install_path ( bundle_name , opts ) display_path = display_path_for ( install_path ) if File . exists? ( install_path ) SC . logger . info ( "Removing #{bundle_name} at #{install_path}" ) SC . logger . debug ( " ~ rm_rf #{install_path}" ) if ! opts [ :dry_run ] FileUtils . rm_rf ( install_path ) end else SC . logger . warn ( "Bundle #{bundle_name} is not installed at #{display_path}." ) SC . logger . info ( " ~ You can specify an alternate location using the --target option." ) end end
Attemps to remove the bundle installed at the specified location.
Attemps to remove the bundle installed at the specified location .
bundle_name
<not_specific>
opts
<not_specific>