lib/sproutcore/bundle_installer.rb
# Attempts to install the named bundle using any passed options.  If a 
# directory already exists at the install path location, then this method
# will attempt to update the bundle there rather than install it.
#
Attempts to install the named bundle using any passed options.  If a
directory already exists at the install path location, then this method
will attempt to update the bundle there rather than install it.
Attempts to install the named bundle using any passed options . If a directory already exists at the install path location then this method will attempt to update the bundle there rather than install it .
def install(bundle_name, opts ={})
      install_path = normalize_install_path(bundle_name, opts)
      if !opts[:skip_check] && File.exists?(install_path)
        if opts[:force]
          remove(bundle_name, opts)
          opts.delete(:force)
          opts[:skip_check] = true if opts[:dry_run]
          install(bundle_name, opts)
        else
          display_path = display_path_for(install_path)
          SC.logger.warn %(#{bundle_name} appears to be installed already!)
          SC.logger.info %( ~ If you do not think this bundle is properly installed remove the directory at:)
          SC.logger.info %( ~ #{install_path})
          SC.logger.info %( ~ and try again.)
        end
      else
        github_path = normalize_github_path(bundle_name, opts) 
        SC.logger.info("Installing #{bundle_name}...")
        self.fetch(github_path, install_path, opts)
      end
    end
def install ( bundle_name , opts = { } ) install_path = normalize_install_path ( bundle_name , opts ) if ! opts [ :skip_check ] && File . exists? ( install_path ) if opts [ :force ] remove ( bundle_name , opts ) opts . delete ( :force ) opts [ :skip_check ] = true if opts [ :dry_run ] install ( bundle_name , opts ) else display_path = display_path_for ( install_path ) SC . logger . warn %(#{bundle_name} appears to be installed already!) SC . logger . info %( ~ If you do not think this bundle is properly installed remove the directory at:) SC . logger . info %( ~ #{install_path}) SC . logger . info %( ~ and try again.) end else github_path = normalize_github_path ( bundle_name , opts ) SC . logger . info ( "Installing #{bundle_name}..." ) self . fetch ( github_path , install_path , opts ) end end
Attempts to install the named bundle using any passed options.
Attempts to install the named bundle using any passed options .
# Calculate the install path.  If a directory already exists at the # location, try an update instead. # Directory does not exist at install location, fetch the resource... # Compute/normalize the github path
bundle_name
<not_specific>
opts
<not_specific>