Skip to content

Commit

Permalink
Issue #261: add some class-side methods, so that the scripts can be i…
Browse files Browse the repository at this point in the history
…nvoked from within the image [ci skip]
  • Loading branch information
dalehenrich committed Oct 21, 2019
1 parent d9b504d commit 2d15096
Show file tree
Hide file tree
Showing 7 changed files with 76 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,45 @@ Class {
#category : 'gsdevkit_launcher-Scripts'
}

{ #category : 'actions' }
GdkL_CopyScriptClasses class >> copyFileTreeToTonel [
"self copyFileTreeToTonel"

^ self copyFileTreeToTonel: self defaultClassNames
]

{ #category : 'actions' }
GdkL_CopyScriptClasses class >> copyFileTreeToTonel: classNames [
"self copyFileTreeToTonel: #('GdkL_CopyScriptClasses' 'GdkL_Error' 'GdkL-Hello')"

^ self new
classNames: classNames;
write: 'tonel';
main
]

{ #category : 'actions' }
GdkL_CopyScriptClasses class >> copyTonelToFiletree [
"self copyTonelToFiletree"

^ self copyTonelToFiletree: self defaultClassNames
]

{ #category : 'actions' }
GdkL_CopyScriptClasses class >> copyTonelToFiletree: classNames [
"self copyTonelToFiletree: #('GdkL_CopyScriptClasses' 'GdkL_Error' 'GdkL-Hello')"

^ self new
classNames: classNames;
write: 'filetree';
main
]

{ #category : 'private' }
GdkL_CopyScriptClasses class >> defaultClassNames [
^ #('GdkL_CopyScriptClasses' 'GdkL_Error' 'GdkL_Hello')
]

{ #category : 'private' }
GdkL_CopyScriptClasses >> _projectDefinitionClass [
^ ((AllUsers userWithId: 'SystemUser') objectNamed: 'RwComponentProjectDefinition')
Expand All @@ -33,6 +72,11 @@ GdkL_CopyScriptClasses >> _projectDefinitionForUrl: rowanSpecUrl [
^ projectDef
]

{ #category : 'accessing' }
GdkL_CopyScriptClasses >> classNames: classNames [
args := classNames
]

{ #category : 'main' }
GdkL_CopyScriptClasses >> main [
| shebang needsShebangProperty projectDefinition_filetree projectDefinition_tonel packageName sourcePackageDef targetPackageDef |
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
actions
copyFileTreeToTonel: classNames
"self copyFileTreeToTonel: #('GdkL_CopyScriptClasses' 'GdkL_Error' 'GdkL-Hello')"

^ self new
classNames: classNames;
write: 'tonel';
main
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
actions
copyFileTreeToTonel
"self copyFileTreeToTonel"

^ self copyFileTreeToTonel: self defaultClassNames
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
actions
copyTonelToFiletree: classNames
"self copyTonelToFiletree: #('GdkL_CopyScriptClasses' 'GdkL_Error' 'GdkL-Hello')"

^ self new
classNames: classNames;
write: 'filetree';
main
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
actions
copyTonelToFiletree
"self copyTonelToFiletree"

^ self copyTonelToFiletree: self defaultClassNames
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
private
defaultClassNames
^ #('GdkL_CopyScriptClasses' 'GdkL_Error' 'GdkL_Hello')
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
accessing
classNames: classNames
args := classNames

0 comments on commit 2d15096

Please sign in to comment.