Skip to content
This repository has been archived by the owner on Jun 13, 2022. It is now read-only.

Commit

Permalink
Removed relatively unused pipeline_* file lists
Browse files Browse the repository at this point in the history
  • Loading branch information
wagenet committed Sep 14, 2011
1 parent c13b43d commit 907fdba
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 22 deletions.
16 changes: 0 additions & 16 deletions lib/bpm/package.rb
Expand Up @@ -196,22 +196,6 @@ def find_transport_plugins(project)
end.compact
end

def pipeline_libs
(pipeline && pipeline['libs']) || ['lib']
end

def pipeline_css
(pipeline && pipeline['css']) || ['css']
end

def pipeline_assets
(pipeline && pipeline['assets']) || ['assets', 'resources']
end

def pipeline_tests
(pipeline && pipeline['tests']) || ['tests']
end

# Returns a hash of dependencies inferred from the build settings.
def dependencies_build
ret = {}
Expand Down
11 changes: 5 additions & 6 deletions lib/bpm/pipeline/generated_asset.rb
Expand Up @@ -5,8 +5,8 @@ module BPM
class GeneratedAsset < Sprockets::BundledAsset

FORMAT_METHODS = {
'text/css' => ['css', 'pipeline_css'],
'application/javascript' => ['lib', 'pipeline_libs']
'text/css' => ['css'],
'application/javascript' => ['lib']
}

def self.generating_asset
Expand Down Expand Up @@ -142,8 +142,7 @@ def asset_name
end

def build_dependency_context_and_body

project = environment.project
project = environment.project
settings = project.build_settings(environment.mode)[asset_name]
pkgs = settings.keys.map do |pkg_name|
if pkg_name == project.name
Expand Down Expand Up @@ -180,9 +179,9 @@ def build_dependency_context_and_body
context.require_asset(pathname) # start with self

if pathname.to_s =~ /_tests\.js$/
dir_name, dir_method = ['tests', 'pipeline_tests']
dir_name, dir_method = ['tests']
else
dir_name, dir_method = FORMAT_METHODS[content_type] || ['lib', 'pipeline_libs']
dir_name, dir_method = FORMAT_METHODS[content_type] || ['lib']
end

require_assets(pkgs, settings, context)
Expand Down

0 comments on commit 907fdba

Please sign in to comment.